Skip to content

Remove tokenization from OpenAIClient - #4113

Merged
yifanmai merged 4 commits into
mainfrom
yifanmai/openai-no-tokenizer
Mar 13, 2026
Merged

yifanmai merged 4 commits into
mainfrom
yifanmai/openai-no-tokenizer

Conversation

@yifanmai

Copy link
Copy Markdown
Collaborator

The OpenAI Chat Completions API responses do not contain tokens. Previously, we did the tokenization locally, and then returned the tokens in HELM's response. This makes it so that we do not do the tokenization locally, and we do not return tokens in the HELM responses. This saves us from returning redundant information in HELM's response.

This change also affects clients for other platforms that inherit from OpenAIClient.

@yifanmai
yifanmai merged commit 785d256 into main Mar 13, 2026
6 checks passed
@yifanmai
yifanmai deleted the yifanmai/openai-no-tokenizer branch March 13, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant