diff --git a/interpreter_1/interpreter.py b/interpreter_1/interpreter.py index af872179f..efb982a02 100644 --- a/interpreter_1/interpreter.py +++ b/interpreter_1/interpreter.py @@ -230,7 +230,9 @@ async def async_respond(self): edit = ToolRenderer() - if self.provider == "anthropic": + if ( + self.provider == "anthropic" and not self.serve + ): # Server can't handle Anthropic yet if self._client is None: if self.api_key: self._client = Anthropic(api_key=self.api_key) @@ -466,6 +468,12 @@ async def async_respond(self): }, } ) + if "editor" in self.tools: + # print("Editor is not supported for non-Anthropic models.") + pass + if "gui" in self.tools: + # print("GUI is not supported for non-Anthropic models.") + pass if self.model.startswith("ollama/"): # Fix ollama