Azure OpenAI(0.0.28) gpt-4o cannot use Tavily(0.1.2) tools in agent node #17907

Closed
opened 2026-02-21 19:41:14 -05:00 by yindo · 0 comments
Owner

Originally created by @TenShenSun on GitHub (Sep 22, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.6.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

have reponse

Actual Behavior

Run failed: Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': "Invalid schema for function 'tavily_search': 'select' is not valid under any of the given schemas.", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}}"}

Image INPUT: `{ "model": { "provider": "langgenius/azure_openai/azure_openai", "model": "gpt-4o", "model_type": "llm", "mode": "chat", "completion_params": {}, "type": "model-selector" }, "mcp_server": "", "tools": [ { "provider_name": "langgenius/tavily/tavily", "provider_show_name": "langgenius/tavily/tavily", "type": "builtin", "tool_name": "tavily_search", "tool_label": "Tavily Search", "tool_description": "A search engine tool built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed.", "settings": { "auto_parameters": { "type": "constant", "value": false }, "include_images": { "type": "constant", "value": false }, "include_image_descriptions": { "type": "constant", "value": false }, "include_favicon": { "type": "constant", "value": false }, "include_answer": { "type": "constant", "value": false }, "include_raw_content": { "type": "constant", "value": false }, "max_results": { "type": "constant", "value": 5 }, "chunks_per_source": { "type": "constant", "value": 3 } }, "parameters": { "query": null, "search_depth": null, "topic": null, "days": null, "time_range": null, "country": null, "include_domains": null, "exclude_domains": null }, "enabled": true, "extra": { "description": "A search engine tool built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed." } } ], "instruction": "根据用户的问题选择合适的回答", "query": "今天北京天气怎么样" }`
Originally created by @TenShenSun on GitHub (Sep 22, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="2994" height="1942" alt="Image" src="https://github.com/user-attachments/assets/e474ddab-bf81-4d37-9b9d-ede5bc3294c7" /> ### ✔️ Expected Behavior have reponse ### ❌ Actual Behavior Run failed: Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': "Invalid schema for function 'tavily_search': 'select' is not valid under any of the given schemas.", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}}"} <img width="2752" height="1780" alt="Image" src="https://github.com/user-attachments/assets/e0e11504-824d-4575-a0d9-08220a756ffa" /> INPUT: `{ "model": { "provider": "langgenius/azure_openai/azure_openai", "model": "gpt-4o", "model_type": "llm", "mode": "chat", "completion_params": {}, "type": "model-selector" }, "mcp_server": "", "tools": [ { "provider_name": "langgenius/tavily/tavily", "provider_show_name": "langgenius/tavily/tavily", "type": "builtin", "tool_name": "tavily_search", "tool_label": "Tavily Search", "tool_description": "A search engine tool built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed.", "settings": { "auto_parameters": { "type": "constant", "value": false }, "include_images": { "type": "constant", "value": false }, "include_image_descriptions": { "type": "constant", "value": false }, "include_favicon": { "type": "constant", "value": false }, "include_answer": { "type": "constant", "value": false }, "include_raw_content": { "type": "constant", "value": false }, "max_results": { "type": "constant", "value": 5 }, "chunks_per_source": { "type": "constant", "value": 3 } }, "parameters": { "query": null, "search_depth": null, "topic": null, "days": null, "time_range": null, "country": null, "include_domains": null, "exclude_domains": null }, "enabled": true, "extra": { "description": "A search engine tool built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed." } } ], "instruction": "根据用户的问题选择合适的回答", "query": "今天北京天气怎么样" }`
yindo closed this issue 2026-02-21 19:41:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#17907