-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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]: pass message name #17537
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
libs/partners/openai/pyproject.toml
Outdated
@@ -12,7 +12,7 @@ license = "MIT" | |||
|
|||
[tool.poetry.dependencies] | |||
python = ">=3.8.1,<4.0" | |||
langchain-core = "^0.1.16" | |||
langchain-core = "^0.1.25" |
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.
had to bump core for basemessage.name
message_dict["tool_call_id"] = message.tool_call_id | ||
|
||
# tool message doesn't have name: https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages | ||
del message_dict["name"] |
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.
Should we log a warning here? Will OpenAI reject this?
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.
OpenAI rejects. Think I should raise an error?
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.
changed to pass through unless it's none
No description provided.