convert_to_openai_function not generating properly with nested BaseModels #17481
Replies: 5 comments 1 reply
-
🤖 Based on the context provided, it appears that the To address this issue, you would need to modify the However, without the actual implementation of Unfortunately, I couldn't find the current implementation of the Please note that there might be a better answer that I wasn't able to find. If you have any additional information or context, please provide it. Sources
|
Beta Was this translation helpful? Give feedback.
-
I want to add that it was absolutelly working with the old convert_pydantic_to_openai_function as intended. |
Beta Was this translation helpful? Give feedback.
-
same here. this is confusing as it was recommend to switch from convert_pydantic_to_openai_function but it doesnt work. |
Beta Was this translation helpful? Give feedback.
-
cc @baskaryan / @ccurme |
Beta Was this translation helpful? Give feedback.
-
Created an issue here: #21270 |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to migrate from the deprecated convert_pydantic_to_openai_function with the previous Pydantic class, but the new function is not going beyond the first level. The produced output is
Is this a known bug, do i have to manually produce the full schema to pass as a dictionary now? I can't find anything in how to generate the full openai function using the new function.
Thanks
System Info
System Information
The following packages were not found:
Beta Was this translation helpful? Give feedback.
All reactions