kangjr
V2EX  ›  问与答

搞了个 chatgpt openai 接入

  •  
  •   kangjr · Mar 12, 2023 · 1911 views
    This topic created in 1166 days ago, the information mentioned may be changed or developed.

    官网示例 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 replies    2023-03-12 01:44:51 +08:00
    wangritian
        1
    wangritian  
       Mar 12, 2023
    别用大陆的网络
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1007 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:20 · PVG 06:20 · LAX 15:20 · JFK 18:20
    ♥ Do have faith in what you're doing.