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 extensions/openai/completions.py to enable system prompt through API #6083

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Koesn
Copy link

@Koesn Koesn commented Jun 2, 2024

This will ensure the last message is added. It also enable system prompt to be processed. Now OAI API compatible can user their system prompt.

Checklist:

This will ensure the last message is added. It also enable system prompt to be processed. Now OAI API compatible can user their system prompt.
@belladoreai
Copy link
Contributor

I thought all special tokens can already be passed in the API request to the completions endpoint, including the special tokens denoting system prompt. Could you give an example of an input/output pair where the system prompt is not correctly processed without this PR?

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