1
kku
- 发布:2024-03-26 16:11
- 更新:2024-04-12 09:08
- 阅读:880
产品分类: uniCloud/App
操作步骤:
预期结果:
1
1
实际结果:
报错
报错
bug描述:
云函数运行这段代码,报错。调openai的可以成功。
var config1 = {
provider: "ifly",
apiKey: "d788d96*****691a8656d88",
appId: "88a0cf23",
apiSecret: "OWViMjg4*****1OGE5NGFi"
};
var llm = uniCloud.ai.getLLMManager(config1);
const res = await llm.chatCompletion({
messages: [{
role: 'user',
content: "请对这段文字提供中英文对照和英文音标标注。\
'Darling, it must be terrible to be grown up!'"
}]
})
console.log(res);