Skip to content

docs: document Response.duration_ms for sync and async APIs - #1648

Open
shijian0-eng wants to merge 1 commit into
simonw:mainfrom
shijian0-eng:docs/document-response-duration-ms
Open

shijian0-eng wants to merge 1 commit into
simonw:mainfrom
shijian0-eng:docs/document-response-duration-ms

Conversation

@shijian0-eng

Copy link
Copy Markdown

Summary

Document Response.duration_ms() and AsyncResponse.duration_ms() in the Python API documentation.

Changes

  • Add synchronous and asynchronous usage examples.
  • Explain that the method returns response generation time in milliseconds.

Verification

  • python -m pytest (from the repository root)
  • From the docs/ directory: sphinx-build -M html . _build -E -a
  • git diff --check

Fixes #643

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.

Python API documentation for Response objects

1 participant