Skip to content

Commit

Permalink
Set timeout parameter of ky
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-ma committed Feb 6, 2023
1 parent df68256 commit c969d63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/chatgpt_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class ChatGPTClient {
max_tokens: 1024,
temperature: 0,
},
timeout: 30000,
},
).json<OpenAICompletionsResponse>();
} catch (error) {
Expand Down

0 comments on commit c969d63

Please sign in to comment.