feat/chat-completions-compat
main
/api/v1/chat/completions
[DONE]
git diff --check
go test ./...
pnpm --filter @easyai-ai-gateway/web typecheck
可以通过该命令验证可以得到 reasoning_content 增量输出。
curl --request POST \ --url http://localhost:8088/api/v1/chat/completions \ --header 'authorization: Bearer sk-key' \ --header 'content-type: application/json' \ --data '{ "max_tokens": 512, "messages": [ { "content": "Hello", "role": "user" } ], "model": "Doubao Seed 2.0 Lite", "stream": true }'
No dependencies set.
The note is not visible to the blocked user.
变更
/api/v1/chat/completionsOpenAI-compatible SSE 输出,补齐[DONE]、created、role chunk、usage chunk、finish_reason、tool_calls 与 reasoning_content。验证
git diff --checkgo test ./...(apps/api)pnpm --filter @easyai-ai-gateway/web typecheck可以通过该命令验证可以得到 reasoning_content 增量输出。
Pull request closed