V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kangjr
V2EX  ›  问与答

搞了个 chatgpt openai 接入

  •  
  •   kangjr · 2023-03-12 01:39:35 +08:00 · 1092 次点击
    这是一个创建于 403 天前的主题,其中的信息可能已经有所发展或是发生改变。

    官网示例 cat 程序运行 已配置好 key

     const completion = await openai.createCompletion({
          model: "text-davinci-003",
          prompt: generatePrompt(animal),
          temperature: 0.6,
        });
        
    

    一直报错:

    Error with OpenAI API request: connect ETIMEDOUT 108.160.165.173:443

    有无大佬知道为什么

    1 条回复    2023-03-12 01:44:51 +08:00
    wangritian
        1
    wangritian  
       2023-03-12 01:44:51 +08:00
    别用大陆的网络
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3368 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.