baidubce / bce-qianfan-sdk

Provide best practices for LMOps, as well as elegant and convenient access to the features of the Qianfan MaaS Platform. (提供大模型工具链最佳实践,以及优雅且便捷地访问千帆大模型平台)
https://cloud.baidu.com/doc/WENXINWORKSHOP/index.html
Apache License 2.0
334 stars 51 forks source link

openai adapter usage is unavailable #836

Closed zhipeng9802 closed 1 month ago

zhipeng9802 commented 1 month ago

System Info

qianfan version

system version

Reproduction

curl -X 'POST' \
  'http://127.0.0.1:8001/v1/chat/completions' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "ERNIE-3.5-8K",
    "stream_options": {"include_usage": true},
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful assistant."
        },
        {
            "role": "user",
            "content": "hello"
        }
    ],
    "stream": true
  }'
Dobiichi-Origami commented 1 month ago

已修复,请关注下一次发版