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

(rfc) chat models #1424

Merged
merged 29 commits into from Mar 6, 2023
Merged

(rfc) chat models #1424

merged 29 commits into from Mar 6, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

@agola11 agola11 self-requested a review March 3, 2023 22:04
"""Get the default parameters for calling OpenAI API."""
return self.model_kwargs

def _create_retry_decorator(self) -> Callable[[Any], Any]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would refactor this out so both OpenAI and OpenAIChat can use it, input can be client and max_retries

langchain/prompts/chat.py Show resolved Hide resolved
langchain/prompts/chat.py Show resolved Hide resolved
@hwchase17 hwchase17 merged commit 0e21463 into master Mar 6, 2023
@hwchase17 hwchase17 deleted the harrison/chat-models branch March 6, 2023 16:34
zachschillaci27 pushed a commit to zachschillaci27/langchain that referenced this pull request Mar 8, 2023
Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
openai = ChatOpenAI(model_name="gpt-3.5-turbo")
"""

client: Any #: :meta private:

Choose a reason for hiding this comment

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

My linter is complaining that I am not specifying a value for client when instantiating this class. I assume the following would be OK?

client: Any = None

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.

None yet

3 participants