kangjr
V2EX  ›  问与答

搞了个 chatgpt openai 接入

  •  
  •   kangjr · Mar 12, 2023 · 2016 views
    This topic created in 1224 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
    WaldenHorizon
        1
    WaldenHorizon  
       Mar 12, 2023
    别用大陆的网络
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:44 · PVG 02:44 · LAX 11:44 · JFK 14:44
    ♥ Do have faith in what you're doing.