Skip to content

Commit

Permalink
Don't override provider
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Dec 6, 2024
1 parent 6ca8a26 commit 9a8e034
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ async def async_respond(self, user_input=None):
provider = self.provider # Keep existing provider if set
max_tokens = self.max_tokens # Keep existing max_tokens if set

if self.model in ["claude-3-5-sonnet-latest", "claude-3-5-sonnet-20241022"]:
if provider is None and self.model in [
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20241022",
]:
# For some reason, Litellm can't find the model info for these
provider = "anthropic"

Expand Down

0 comments on commit 9a8e034

Please sign in to comment.