diff --git a/src/api/api.ts b/src/api/api.ts index 9acd160..bc33969 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -17,6 +17,7 @@ export const getChatCompletion = async ( body: JSON.stringify({ messages, ...config, + max_tokens: null, }), }); if (!response.ok) throw new Error(await response.text()); @@ -42,6 +43,7 @@ export const getChatCompletionStream = async ( body: JSON.stringify({ messages, ...config, + max_tokens: null, stream: true, }), });