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

Support all features for ChatGLM3 (system prompt / function call / code interpreter) #197

Merged
merged 16 commits into from
Nov 22, 2023

Conversation

li-plus
Copy link
Owner

@li-plus li-plus commented Nov 21, 2023

Run chatglm3_demo.py for all ChatGLM3 features.

API changes:

  • Pipeline.chat now accepts a list of ChatMessage with role/content info instead of a list of plain text, and returns a ChatMessage (sync generate) or multiple DeltaMessages (stream generate)
  • Changed tokenizer.encode_history to tokenizer.encode_messages

@li-plus li-plus merged commit b071907 into main Nov 22, 2023
12 checks passed
@li-plus li-plus deleted the new-prompt-fmt branch November 22, 2023 01:51
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