Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openai[patch]: Update openai chat model to new base class interface #19729

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

nfcampos
Copy link
Collaborator

@nfcampos nfcampos commented Mar 28, 2024

No description provided.

@efriis efriis added the partner label Mar 28, 2024
@efriis efriis self-assigned this Mar 28, 2024
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 28, 2024
Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 6:59pm

@dosubot dosubot bot added 🔌: openai Primarily related to OpenAI integrations 🤖:improvement Medium size change to existing code to handle new use-cases labels Mar 28, 2024
@efriis efriis changed the title Update openai chat model to new base class interface openai[patch]: Update openai chat model to new base class interface Mar 28, 2024
message_dicts, params = self._create_message_dicts(messages, stop)
params = {
**params,
**({"stream": stream} if stream is not None else {}),
**({"stream": self.streaming} if self.streaming else {}),
Copy link
Member

Choose a reason for hiding this comment

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

and just confirming - this will not be called if I call chat.generate(stream=True) because that will call ._stream instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Mar 28, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 28, 2024
@baskaryan baskaryan merged commit d4673a3 into master Mar 29, 2024
20 checks passed
@baskaryan baskaryan deleted the nc/28mar/openai-chat-update branch March 29, 2024 21:30
efriis added a commit that referenced this pull request Apr 1, 2024
…class interface (#19871)

Partially Reverts #19729

---------

Co-authored-by: Erick Friis <[email protected]>
Je-Cp pushed a commit to Je-Cp/jcp-langchain that referenced this pull request Apr 2, 2024
…class interface (#19871)

Partially Reverts langchain-ai/langchain#19729

---------

Co-authored-by: Erick Friis <[email protected]>
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
…class interface (#19871)

Partially Reverts #19729

---------

Co-authored-by: Erick Friis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. 🔌: openai Primarily related to OpenAI integrations partner size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants