-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
(rfc) chat models #1424
Conversation
"""Get the default parameters for calling OpenAI API.""" | ||
return self.model_kwargs | ||
|
||
def _create_retry_decorator(self) -> Callable[[Any], Any]: |
There was a problem hiding this comment.
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
Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
openai = ChatOpenAI(model_name="gpt-3.5-turbo") | ||
""" | ||
|
||
client: Any #: :meta private: |
There was a problem hiding this comment.
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
No description provided.