forked from phoenix/litellm-mirror
adding support for finetuned completion models
This commit is contained in:
parent
0634510285
commit
14ab99c3c4
3 changed files with 15 additions and 3 deletions
|
@ -248,7 +248,9 @@ def completion(
|
|||
original_response=response,
|
||||
additional_args={"headers": litellm.headers},
|
||||
)
|
||||
elif model in litellm.open_ai_text_completion_models:
|
||||
elif (model in litellm.open_ai_text_completion_models or
|
||||
"ft:babbage-002" in model or # support for finetuned completion models
|
||||
"ft:davinci-002" in model):
|
||||
openai.api_type = "openai"
|
||||
openai.api_base = (
|
||||
litellm.api_base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue