Skip to content

Commit

Permalink
Default to 3.5 if model not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 5, 2024
1 parent 18b2b04 commit 338fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agixt/providers/gpt4free.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(
elif AI_MODEL in ModelUtils.convert:
self.AI_MODEL = ModelUtils.convert[AI_MODEL]
else:
raise ValueError(f"Model not found: {AI_MODEL}")
self.AI_MODEL = ModelUtils.convert["gpt-3.5-turbo"]
self.AI_TEMPERATURE = AI_TEMPERATURE if AI_TEMPERATURE else 0.7
self.MAX_TOKENS = MAX_TOKENS if MAX_TOKENS else 4096
self.AI_TOP_P = AI_TOP_P if AI_TOP_P else 0.7
Expand Down

0 comments on commit 338fc18

Please sign in to comment.