fix(main.py): expose custom llm provider for text completions

This commit is contained in:
Krrish Dholakia 2023-11-02 07:55:54 -07:00
parent a652f05bb3
commit 943f9d9432
2 changed files with 3 additions and 11 deletions

View file

@ -496,7 +496,8 @@ def completion(
additional_args={"headers": headers},
)
elif (
model in litellm.open_ai_text_completion_models
custom_llm_provider == "text-completion-openai"
or model in litellm.open_ai_text_completion_models
or "ft:babbage-002" in model
or "ft:davinci-002" in model # support for finetuned completion models
# NOTE: Do NOT add custom_llm_provider == "openai".