mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-27 10:25:50 +03:00
[GH-ISSUE #80] 好像在酒馆中openai转克劳德协议出错 #68
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xiaoshi569 on GitHub (Nov 22, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/80
[16:46:12] [INFO] [Request Convert] Converting request from openai to claude-custom
[16:46:12] [INFO] [Content Generation] Model: claude-sonnet-4-5-20250929, Stream: false
[16:46:12] [INFO] [System Prompt Manager] System prompt updated in file for provider 'claude'.
[16:46:12] [INFO] 11/22/2025, 8:46:12 AM [INPUT]: 思考已结束 I will DIRECTLY --------------------------------------
[16:46:13] [INFO] [ProviderPoolManager] provider_pools.json for claude-custom updated successfully.
[16:46:14] [ERROR] [ClaudeApiService] Error calling API: {"type":"error","error":{"type":"invalid_request_error","message":"messages: final assistant content cannot end with trailing whitespace"},"request_id":"req_011CVNdpxvGZfZw1b6cfxXDM"}
[16:46:14] [ERROR] [Server] Error during unary processing: AxiosError: Request failed with status code 400 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:536:35) at endReadableNT (node:internal/streams/readable:1698:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ClaudeApiService.callApi (file:///app/src/claude/claude-core.js:60:30) at async ClaudeApiService.generateContent (file:///app/src/claude/claude-core.js:172:26) at async handleUnaryRequest (file:///app/src/common.js:267:32) at async handleContentGenerationRequest (file:///app/src/common.js:414:9) at async handleAPIRequests (file:///app/src/api-manager.js:38:13) at async Server.requestHandler (file:///app/src/request-handler.js:129:32)
@justlovemaki commented on GitHub (Nov 22, 2025):
那只能等玩酒馆的佬帮忙修bug了
final assistant content cannot end with trailing whitespace
@justlovemaki commented on GitHub (Dec 1, 2025):
已更新,再试试