Skip to content

Commit 6a7ee0c

Browse files
committed
Force server to use LiteLLM
1 parent 20bc10f commit 6a7ee0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

interpreter_1/interpreter.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ async def async_respond(self):
230230

231231
edit = ToolRenderer()
232232

233-
if self.provider == "anthropic":
233+
if (
234+
self.provider == "anthropic" and not self.serve
235+
): # Server can't handle Anthropic yet
234236
if self._client is None:
235237
if self.api_key:
236238
self._client = Anthropic(api_key=self.api_key)
@@ -466,6 +468,12 @@ async def async_respond(self):
466468
},
467469
}
468470
)
471+
if "editor" in self.tools:
472+
# print("Editor is not supported for non-Anthropic models.")
473+
pass
474+
if "gui" in self.tools:
475+
# print("GUI is not supported for non-Anthropic models.")
476+
pass
469477

470478
if self.model.startswith("ollama/"):
471479
# Fix ollama

0 commit comments

Comments
 (0)