mirror of
https://github.com/ztjhz/BetterChatGPT.git
synced 2023-07-20 23:11:29 +03:00
@@ -22,7 +22,7 @@ export const getChatCompletion = async (
|
||||
body: JSON.stringify({
|
||||
messages,
|
||||
...config,
|
||||
max_tokens: null,
|
||||
max_tokens: undefined,
|
||||
}),
|
||||
});
|
||||
if (!response.ok) throw new Error(await response.text());
|
||||
@@ -51,7 +51,7 @@ export const getChatCompletionStream = async (
|
||||
body: JSON.stringify({
|
||||
messages,
|
||||
...config,
|
||||
max_tokens: null,
|
||||
max_tokens: undefined,
|
||||
stream: true,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user