Skip to content

Commit

Permalink
feat(fine tuned models) enable access to fine tuned OpenAI models whi… (
Browse files Browse the repository at this point in the history
#66)

Allow the use of fine-tuned OpenAI gpt 3.5 Turbo models which start with
ft:gpt, this is especially useful when trying to compare the stock
models against fine-tuned models quickly.
  • Loading branch information
ykim-isabel authored Feb 4, 2024
1 parent 9ce23b0 commit 0e805ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptcli/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AssistantConfig(TypedDict, total=False):


def get_completion_provider(model: str) -> CompletionProvider:
if model.startswith("gpt"):
if model.startswith("gpt") or model.startswith("ft:gpt"):
return OpenAICompletionProvider()
elif model.startswith("claude"):
return AnthropicCompletionProvider()
Expand Down

0 comments on commit 0e805ea

Please sign in to comment.