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

Add a "conversational_history" option in openai llm model #477

Open
selectorseb opened this issue Jul 11, 2024 · 0 comments
Open

Add a "conversational_history" option in openai llm model #477

selectorseb opened this issue Jul 11, 2024 · 0 comments

Comments

@selectorseb
Copy link

selectorseb commented Jul 11, 2024

Hi,
I use the openai llm model in production, and we would like to incorporate conversational history with the ChatML approach, with the User/Assistant alternating streams that openai supports:
[{"role": "user", "content": messge1},{"role": "assistant", "content": messge2},{"role": "user", "content": messge3},{"role": "assistant", "content": messge4},]

Such that we could provide a list of dicts and update the sent request by appending before the request with the current prompt

{"messages": [{"role": "user", "content": prompt}]}

So I was wondering if that parameter could be added to the OPENAI rest model

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

No branches or pull requests

1 participant