Dify seems not to parse enums in OpenAPI specification when calling a plugin #4255
Closed
4 tasks done
Labels
🐞 bug
Something isn't working
Self Checks
Dify version
0.6.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
light_control
, the source code of the plugin is hereopenapi.json
, the acceptable values are listed byenum
field.As far as I know GPT-4-Turbo, it's capable to understand what
enum
means if the JSON schema for tool calls has this field. So, it seems dify does not parse this field into a proper JSON schema and send to OpenAI.✔️ Expected Behavior
A proper JSON schema is parsed from
openapi.json
and sent to OpenAI or any other GPT providers that have function calling support.❌ Actual Behavior
GPT tries to call the function with guessed values instead of listed acceptable ones.
This issue is further complicated by #3999 .
The text was updated successfully, but these errors were encountered: