Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ChatML as default chat prompt template #985

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

nsarrazin
Copy link
Collaborator

Wanted to make either chatprompttemplate or tokenizer mandatory, but since some endpoints type use chat completion/messages API, they don't need a chat template as it's handled by their backend.

This PR sets a default (ChatML), so that we won't throw an error when not setting the chat template. This reverts a breaking change.

#744 (comment)

@nsarrazin nsarrazin added bug Something isn't working back This issue is related to the Svelte backend or the DB labels Apr 8, 2024
@nsarrazin nsarrazin merged commit 619722b into main Apr 8, 2024
3 checks passed
@nsarrazin nsarrazin deleted the fix/default_prompt_template branch April 8, 2024 06:57
@flexchar
Copy link
Contributor

flexchar commented Apr 8, 2024

Thanks!!

ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants