Skip to content

Commit

Permalink
Remove the model from the count tokens request.
Browse files Browse the repository at this point in the history
  • Loading branch information
DellaBitta committed May 31, 2024
1 parent af28cd1 commit c349a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/methods/count-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function countTokens(
Task.COUNT_TOKENS,
apiKey,
false,
JSON.stringify({ ...params, model }),
JSON.stringify(params),
requestOptions,
);
return response.json();
Expand Down

0 comments on commit c349a54

Please sign in to comment.