Visitar URL original
Fix RequestError docstrings: remove undocumented raises by MathewKioko · Pull Request #795 · ollama/ollama-python · GitHub
Skip to content

Fix RequestError docstrings: remove undocumented raises - #795

Open
MathewKioko wants to merge 1 commit into
ollama:mainfrom
MathewKioko:fix/requesterror-docstrings
Open

MathewKioko wants to merge 1 commit into
ollama:mainfrom
MathewKioko:fix/requesterror-docstrings

Conversation

@MathewKioko

Copy link
Copy Markdown

Remove the 'Raises RequestError' line from Client.generate, Client.chat, AsyncClient.generate, and AsyncClient.chat docstrings.

RequestError is defined but never raised, so the docstrings don't match behavior. ResponseError already covers request failures.

Fixes #783

The RequestError class exists but is never raised. Remove the
'Raises RequestError' line from Client.generate, Client.chat,
AsyncClient.generate, and AsyncClient.chat docstrings so docs match
behavior (ResponseError already covers failures).

This branch has not been deployed

No deployments
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.

RequestError is documented in four methods but never raised

2 participants