[GH-ISSUE #80] 好像在酒馆中openai转克劳德协议出错 #68

Closed
opened 2026-02-27 07:17:48 +03:00 by kerem · 2 comments
Owner

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)

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]: <think> 思考已结束 </think> I will <thinking> 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)
kerem closed this issue 2026-02-27 07:17:48 +03:00
Author
Owner

@justlovemaki commented on GitHub (Nov 22, 2025):

那只能等玩酒馆的佬帮忙修bug了

final assistant content cannot end with trailing whitespace

<!-- gh-comment-id:3566418912 --> @justlovemaki commented on GitHub (Nov 22, 2025): 那只能等玩酒馆的佬帮忙修bug了 final assistant content cannot end with trailing whitespace
Author
Owner

@justlovemaki commented on GitHub (Dec 1, 2025):

已更新,再试试

<!-- gh-comment-id:3594914978 --> @justlovemaki commented on GitHub (Dec 1, 2025): 已更新,再试试
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#68
No description provided.