我在java代码中用http apiKey的方式调用混元大模型,和用python openai兼容sdk的方式不同(python的没有问题),
java发生了工具调用是这么返回的:
{"modelName":"hunyuan-turbos-latest","apiKey":"xxxxxxxxxxxx","apiUrl":"https://api.hunyuan.cloud.tencent.com/v1/chat/completions","modelId":"1001","modelType":"llm","modelCompany":"hunyuan"}返回结果:{"id":"b933fb1dc780eb2e48ac6ee5723ff327","object":"chat.completion","created":1748225234,"model":"hunyuan-turbos-latest","system_fingerprint":"","choices":[{"index":0,"message":{"role":"assistant","content":"getCompanyInfo\nActionInput{\"companyId\": 1001}"},"finish_reason":"stop"}],"usage":{"prompt_tokens":107,"completion_tokens":15,"total_tokens":122},"note":"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记"}
请问这是什么原因?
相似问题