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

fix: none prompt to string #2259

Closed
wants to merge 1 commit into from
Closed

Conversation

dongs0104
Copy link

When echo is true prompt must be string need to repeat

When echo is true prompt must be string need to repeat
@Superjomn
Copy link
Collaborator

The input of a list of int (token IDs) helps eliminate the need for a tokenizer, thus saving the overhead. Decoding the IDs back to string seems not that necessary.
May I know the motivation for the modification? @dongs0104

@dongs0104
Copy link
Author

I raised a PR because I believe that when using OpenAI’s endpoint style or high-level APIs, it is appropriate to return a string if the echo value is set to True.

@dongs0104 dongs0104 closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants