fix: llm_provider add openai finetune compatibility

This commit is contained in:
Zeeland 2023-10-16 18:44:45 +08:00
parent d0dec2f2ed
commit 9f6138ef0e
2 changed files with 2 additions and 2 deletions

View file

@ -375,7 +375,7 @@ def completion(
model in litellm.open_ai_chat_completion_models
or custom_llm_provider == "custom_openai"
or custom_llm_provider == "openai"
or "ft:gpt-3.5-turbo" in model # finetuned gpt-3.5-turbo
or "ft:gpt-3.5-turbo" in model # finetune gpt-3.5-turbo
): # allow user to make an openai call with a custom base
# note: if a user sets a custom base - we should ensure this works
# allow for the setting of dynamic and stateful api-bases