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

Solve the compatibility problem of SeparatorStyle.CHATML type messes field #3278

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

icowan
Copy link

@icowan icowan commented Apr 24, 2024

Why are these changes needed?

Solve the compatibility problem of SeparatorStyle.CHATML type messes field

/usr/local/lib/python3.10/dist-packages/fastchat/conversation.py", line 197, in get_prompt
ERROR | stderr | ret += role + ":" + message + seps[i % 2] + "\n"
ERROR | stderr | TypeError: can only concatenate str (not "NoneType") to str

Checks

  • I've run format.sh to lint the changes in this PR.
  • I've included any doc changes needed.
  • I've made sure the relevant tests are passing (if applicable).

Michaelvll and others added 20 commits April 18, 2024 10:46
…field

Solve the compatibility problem of SeparatorStyle.CHATML type messes field

/usr/local/lib/python3.10/dist-packages/fastchat/conversation.py", line 197, in get_prompt
ERROR | stderr |     ret += role + ":" + message + seps[i % 2] + "\n"
 ERROR | stderr | TypeError: can only concatenate str (not "NoneType") to str
Solve the compatibility problem of SeparatorStyle.CHATML type messes …
UI Improvements: unified link color, removed link underline, made win…
# Conflicts:
#	fastchat/conversation.py
# Conflicts:
#	fastchat/conversation.py
#	fastchat/serve/openai_api_server.py
# Conflicts:
#	docs/arena.md
#	fastchat/conversation.py
#	fastchat/serve/gradio_block_arena_anony.py
#	fastchat/serve/gradio_block_arena_named.py
#	fastchat/serve/gradio_block_arena_vision.py
#	fastchat/serve/gradio_block_arena_vision_anony.py
#	fastchat/serve/gradio_block_arena_vision_named.py
#	fastchat/serve/gradio_web_server.py
#	fastchat/utils.py
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.

None yet

2 participants