Skip to content

Commit

Permalink
feat: wont send max_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Nov 9, 2023
1 parent 3b3ebda commit fd2f441
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export class ChatGPTApi implements LLMApi {
presence_penalty: modelConfig.presence_penalty,
frequency_penalty: modelConfig.frequency_penalty,
top_p: modelConfig.top_p,
max_tokens: Math.max(modelConfig.max_tokens, 1024),
// max_tokens: Math.max(modelConfig.max_tokens, 1024),
// Please do not ask me why not send max_tokens, no reason, this param is just shit, I dont want to explain anymore.
};

console.log("[Request] openai payload: ", requestPayload);
Expand Down

0 comments on commit fd2f441

Please sign in to comment.