diff --git a/interpreter/interpreter.py b/interpreter/interpreter.py index 473691912..59490a959 100644 --- a/interpreter/interpreter.py +++ b/interpreter/interpreter.py @@ -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"