fisherjoe
fisherjoe
  • 发布:2024-06-07 18:43
  • 更新:2024-06-11 10:55
  • 阅读:107

本地调试uni-ai方法chatCompletion时报错

分类:uni-app
        var llmManager = uniCloud.ai.getLLMManager({  
          // provider: 'azure'  
          appId: '__UNI__1EF92D0'  
        })  
        var res = await llmManager.chatCompletion({  
            messages: [{  
                role: 'user',  
                content: '今天广州天气怎么样'  
            }]  
        })  
        console.log(res);  

18:37:24.993 [本地调试]Error: unable to verify the first certificate
18:37:24.993 [本地调试] at TLSSocket.onConnectSecure (node:_tls_wrap:1535:34)
18:37:24.993 [本地调试] at TLSSocket.emit (node:events:513:28)
18:37:24.993 [本地调试] at TLSSocket._finishInit (node:_tls_wrap:949:8)
18:37:24.993 [本地调试] at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:730:12)
18:37:24.993 [本地调试] at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)

2024-06-07 18:43 负责人:无 分享
已邀请:
fisherjoe

fisherjoe (作者)

已解决,公司网络问题。

要回复问题请先登录注册