Skip to content

docs: add ML inference error-handling examples#237

Open
namedfarouk wants to merge 1 commit intoOpenGradient:mainfrom
namedfarouk:codex/fix-228-inference-error-handling
Open

docs: add ML inference error-handling examples#237
namedfarouk wants to merge 1 commit intoOpenGradient:mainfrom
namedfarouk:codex/fix-228-inference-error-handling

Conversation

@namedfarouk
Copy link
Copy Markdown

Summary

  • add a dedicated README section showing robust alpha.infer(...) error handling
  • add error-handling guidance to examples/README.md
  • add a runnable examples/alpha/run_inference_with_error_handling.py example
  • document the new alpha example in examples/alpha/README.md

Why

The existing inference examples were success-only. This adds concrete handling for:

  • invalid input / malformed requests
  • contract reverts
  • timeout/network/runtime failures
  • insufficient-funds/model-CID style runtime failures (message-classified)

Fixes #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: ML Inference examples missing error handling

1 participant