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

Added conversational history parameter for openai #478

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

Conversation

selectorseb
Copy link

@selectorseb selectorseb commented Jul 11, 2024

Description

Added a parameter to add conversational history supported by openai

which is the ChatML User/Assisant model.
Example:
[{"role": "user", "content": messge1},
{"role": "assistant", "content": messge2}] is an example of a conversation held by the user and reponse by llm, wich can be appended to the api request to openai

Corresponding documentation PR

Types of change

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran all tests in tests and usage_examples/tests, and all new and existing tests passed. This includes
    • all external tests (i. e. pytest ran with --external)
    • all tests requiring a GPU (i. e. pytest ran with --gpu)
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

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.

1 participant