我是用 koyeb 的 docker 部署的
这里是我的日志。
谢谢各位佬啦~
[SYS] 2024/07/20 - 09:14:40 | testing channel 2 with model gpt-4
[INFO] 2024/07/20 - 09:14:41 | %!s(<nil>) | record consume log: userId=1, 用户调用前余额=75, channelId=2, promptTokens=1, completionTokens=2, modelName=gpt-4, tokenName=模型测试, quota=75, content=模型测试
[SYS] 2024/07/20 - 09:14:41 | testing channel #2, response:
{"id":"chatcmpl-XDy6RYZpKGC38kfmFBy37oPsmXG7n","model":"gpt-4","object":"chat.completion","created":1721466881,"choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"usage":{"prompt_tokens":1,"completion_tokens":2,"total_tokens":3}}
[GIN] 2024/07/20 - 09:14:41 | 20240720091440942698185b4NYUDgh | 200 | 707.73063ms | 45.194.20.39 | GET /api/channel/test/2?model=gpt-4