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: llm_provider add openai finetune compatibility #618

Merged

Conversation

Undertone0809
Copy link
Contributor

llm_provider add openai finetune compatibility.

A error happens in #617

original code:

from litellm import completion

response = completion(
  model="ft:gpt-3.5-turbo-0613:xxx::xxx",
  messages=[
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello!"}
  ],
  custom_llm_provider="openai"
)

print(response.choices[0].message)

after:

from litellm import completion

response = completion(
  model="ft:gpt-3.5-turbo-0613:xxx::xxx",
  messages=[
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello!"}
  ]
)

print(response.choices[0].message)

@vercel
Copy link

vercel bot commented Oct 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2023 10:48am

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@ishaan-jaff
Copy link
Contributor

ishaan-jaff commented Oct 16, 2023

Thanks for this awesome PR @Undertone0809 !

We'd love to give you a shoutout for your work ! What's your linkedin / twitter ?

@ishaan-jaff ishaan-jaff merged commit 09b51fc into BerriAI:main Oct 16, 2023
1 check passed
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.

2 participants