Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

add feature parity in client methods ENG-891#9

Merged
r0ymanesco merged 3 commits into
mainfrom
t7-stream-param
Jul 31, 2024
Merged

add feature parity in client methods ENG-891#9
r0ymanesco merged 3 commits into
mainfrom
t7-stream-param

Conversation

@r0ymanesco
Copy link
Copy Markdown
Contributor

Add missing params in stream, astream, invoke, ainvoke methods

@r0ymanesco r0ymanesco requested review from acompa and devanshrj July 31, 2024 02:11
@r0ymanesco r0ymanesco changed the title add feature parity in client methods add feature parity in client methods ENG-891 Jul 31, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 31, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  notdiamond/llms
  client.py 687, 961-962, 1150-1151, 1264-1265
  tests/test_documentation
  test_structured_output.py
Project Total  

This report was generated by python-coverage-comment-action

Copy link
Copy Markdown
Contributor

@acompa acompa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for the quick turnaround!

Comment thread notdiamond/llms/client.py
LLMConfig: the best LLM selected by the router
"""

if model is not None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this code branch? That was my error, if not.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, confirming you moved it into the child method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I moved it to the corresponding invoke and ainvoke methods since create and acreate are just wrappers for them anyway.

@r0ymanesco r0ymanesco merged commit 1d948e4 into main Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants