re-add changes from main

This commit is contained in:
Luciano Scarpulla
2024-11-12 11:54:24 +08:00
parent 0462ea0e38
commit 4cb18e9e3b
-8
View File
@@ -15,13 +15,6 @@ if TYPE_CHECKING:
T = TypeVar("T", bound=BaseModel)
PROVIDER_NAME = "anthropic"
DEFAULT_MODEL = "claude-3-5-sonnet-20241022"
DEFAULT_MAX_TOKENS = 1_000
DEFAULT_KWARGS = {"max_tokens": DEFAULT_MAX_TOKENS}
class AnthropicTool(BaseTool):
def get_response_schema(self) -> Any:
assert self.is_executed, f"Tool {self.name} was not executed."
@@ -67,7 +60,6 @@ class AnthropicTool(BaseTool):
}
class Anthropic(BaseProvider):
NAME = "anthropic"
DEFAULT_MODEL = "claude-3-5-sonnet-20241022"