OpenBMB / XAgent

An Autonomous LLM Agent for Complex Task Solving
https://blog.x-agent.net/blog/xagent/
Apache License 2.0
8.03k stars 824 forks source link

连接错误,请问这个是访问不到openai-api吗 #161

Closed iaoxuesheng closed 10 months ago

iaoxuesheng commented 10 months ago

2023-11-03 22-04-44 的屏幕截图 2023-11-02 21-41-16 的屏幕截图

iaoxuesheng commented 10 months ago

只看下面的图就行,请问这个是jsondecoder失败是连接不上openai-api还是连不上tool,该怎么修改

Umpire2018 commented 10 months ago

参见状态码指引image 是否配置了错误的 organization, 此项可以删除,也可打码隐私内容后贴出配置进行查看。

iaoxuesheng commented 10 months ago

参见状态码指引image 是否配置了错误的 organization, 此项可以删除,也可打码隐私内容后贴出配置进行查看。

我是把这项删除了

api_keys:
  gpt-3.5-turbo-16k:
    - api_key: sk-123456
      api_base: https://example.com
      api_type: azure
      api_version: 2023-07-01-preview
      engine: GPT-35-Turbo-16k
      # you can use any kwargs supported by openai.ChatCompletion here
    - api_key: sk-123456
      model: gpt-3.5-turbo-16k
Umpire2018 commented 10 months ago

@iaoxuesheng 看起来你将同一个Key同时设置在了 azure 与 opneai处,请确定 key 类型,仅保留一处, 如若为 openai key

api_keys:
  gpt-3.5-turbo-16k:
    - api_key: sk-123456
      model: gpt-3.5-turbo-16k