Skip to content

Commit 9a8e034

Browse files
committed
Don't override provider
1 parent 6ca8a26 commit 9a8e034

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interpreter/interpreter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ async def async_respond(self, user_input=None):
249249
provider = self.provider # Keep existing provider if set
250250
max_tokens = self.max_tokens # Keep existing max_tokens if set
251251

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

0 commit comments

Comments
 (0)