Skip to content

fix(openai/adapter): handle tool_search type to avoid empty tool name#86

Open
Highbor wants to merge 1 commit into
ZhiYi-R:mainfrom
Highbor:fix-tool-search-empty-name
Open

fix(openai/adapter): handle tool_search type to avoid empty tool name#86
Highbor wants to merge 1 commit into
ZhiYi-R:mainfrom
Highbor:fix-tool-search-empty-name

Conversation

@Highbor

@Highbor Highbor commented Jun 27, 2026

Copy link
Copy Markdown

Codex(Version 26.616.81150 • @ 2026\6\24) sends tools with type "tool_search" but no name field. Previously this fell through to the default case and produced an empty tool name, which upstream providers (e.g. DeepSeek) reject.

Assign the synthetic name "tool_search" like web_search/file_search.

Fixes: Invalid 'tools[15].function.name': empty string

It appears when using the router. eg gpt-5.4 to deepseek-v4-pro

Codex sends tools with type "tool_search" but no name field. Previously
this fell through to the default case and produced an empty tool name,
which upstream providers (e.g. DeepSeek) reject.

Assign the synthetic name "tool_search" like web_search/file_search.

Fixes: Invalid 'tools[15].function.name': empty string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant