-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Whenever I run promptimize, using the gpt-3.5-turbo
model, I get the following deprecation warning:
~/.pyenv/versions/myenv/lib/python3.10/site-packages/langchain/llms/openai.py:172: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: `from langchain.chat_models import ChatOpenAI`
I think this relates to this langchain discussion thread, but when I try to implement the suggested fix, I get a different error:
~/.pyenv/versions/myenv/lib/python3.10/site-packages/langchain/callbacks/manager.py", line 297, in _handle_event
getattr(handler, event_name)(*args, **kwargs)
File "~/.pyenv/versions/myenv/lib/python3.10/site-packages/langchain/callbacks/base.py", line 167, in on_chat_model_start
raise NotImplementedError(
NotImplementedError: OpenAICallbackHandler does not implement `on_chat_model_start`
Metadata
Metadata
Assignees
Labels
No labels