-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug]: 接入第三方 Agnes API 存在报错 #4435
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingproviderModel providers & selection (internal/provider)Model providers & selection (internal/provider)v2Go rewrite (1.x) — main-v2 branch, active developmentGo rewrite (1.x) — main-v2 branch, active developmentwindowsWindows-specificWindows-specific
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingproviderModel providers & selection (internal/provider)Model providers & selection (internal/provider)v2Go rewrite (1.x) — main-v2 branch, active developmentGo rewrite (1.x) — main-v2 branch, active developmentwindowsWindows-specificWindows-specific
Version line
v2 — Go rewrite (1.x), main-v2 (active development)
Exact version
0.46.1
What happened?
接入 Agnes API 后,发起对话请求时返回报错,对话无法正常进行。期望行为是正常返回对话内容。
Steps to reproduce
在配置文件中填入 Agnes API 的 Key 和 Endpoint
启动程序,选择 Agnes 作为对话模型
发送任意一条消息
程序报错,错误信息见下方 Logs
OS / platform
Windows 10
Relevant logs or output
请求格式错误 (HTTP 400):请求体被拒绝,通常是程序缺陷。若持续出现请反馈。 {"error":{"type":"400","message":"***.BadRequestError: OpenAIException - {\"error\":{\"message\":\"40 validation errors:\\n {'type': 'missing', 'loc': ('body', 'tools', 0, 'function'), 'msg': 'Field required', 'input': {'name': 'ask', 'description': \\\"Ask the user one or more multiple-choice questions when you hit a decision that is genuinely theirs to make — one you can't resolve from the request, the code, or sensible defaults. The frontend shows the options for the user to pick; their choices are returned to you. Prefer this over asking in prose for any real fork (which approach, which library, scope). Don't use it for decisions with an obvious default — pick the sensible option and proceed. Tool-approval modes such as YOLO do not answer these questions for the user. Each question ha…