diff --git a/src/api/api.ts b/src/api/api.ts index 4713496..0989207 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -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, }), });