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

Allow specifying base model as model param in OpenAI API #331

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

tgaddair
Copy link
Contributor

@tgaddair tgaddair commented Mar 14, 2024

Closes #330.
Closes #214.

Usage:

resp = client.chat.completions.create(
    model="mistralai/Mistral-7B-Instruct-v0.1",
    messages=[
        {"role": "user", "content": "Give me a short introduction to large language model."},
    ],
    max_tokens=100,
)
print(resp.choices[0].message.content)

@tgaddair tgaddair merged commit 1e2a94f into main Mar 14, 2024
2 checks passed
@tgaddair tgaddair deleted the oai-model branch March 14, 2024 16:55
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.

Cannot run any OpenAI client chat completions with model from latest docker image Openai model name fallback
1 participant