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 on fly test of tools #2575

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

lungothrin
Copy link
Contributor

allow user to create observation inputs on web ui to test the effectiveness of tuned model using tools.

@hiyouga hiyouga self-requested a review February 25, 2024 07:41
@@ -115,7 +116,7 @@ def predict(
temperature: float,
) -> Generator[Tuple[Sequence[Tuple[str, str]], Sequence[Tuple[str, str]]], None, None]:
chatbot.append([query, ""])
query_messages = messages + [{"role": Role.USER.value, "content": query}]
query_messages = messages + [{"role": Role(role), "content": query}]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be Role(role).value or just role?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just role should be fine

@hiyouga hiyouga added the pending This problem is yet to be addressed label Feb 25, 2024
@hiyouga
Copy link
Owner

hiyouga commented Feb 28, 2024

LGTM!

@hiyouga hiyouga merged commit 7c87532 into hiyouga:main Feb 28, 2024
1 check passed
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants