📌 📄 内容摘要:
Dorothy 在 aihubmix的response API网络搜索工具用不了了吗 中发帖
所有带web_search_preview工具的请求全部都返回400错误,原因还说的是缺少’model’参数。去掉这个工具就正常了。刚开始以为是gpt-5暂时不支持,但是以前的o4-mini和gpt-4.1也都不行了
错误信息:
openai.BadRequestError: Error code: 400 - {'error': {'message': "Missing required parameter: 'model'. (tid: 20250810xxxx)", 'type': 'Aihubmix_api_error'}, 'type': 'error'}
请求的代码:
response = client.responses.create(
model="gpt-4.1-mini",
input="What is the capital of France...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/856752/1 ─────────────────────────────
📢 来源:LINUX DO