kangjr
V2EX  ›  问与答

搞了个 chatgpt openai 接入

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