🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
feat: add ministral 3b and 8b and some small enhancements (#1076)
Wendong-Fan5eaa48305ca7
diff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.pyindex c49a9ee72..fc9a9173c 100644--- a/camel/agents/chat_agent.py+++ b/camel/agents/chat_agent.py@@ -415,7 +415,7 @@ class ChatAgent(BaseAgent):def step(self,input_message: BaseMessage,- output_schema: Optional[Type[BaseModel]] = None,+ response_format: Optional[Type[BaseModel]] = None,) -> ChatAgentResponse:r"""Performs a single step in the chat session by generating a responseto the input message.@@ -426,7 +426,7 @@ class ChatAgent(BaseAgent):either `user` or `assistant` but it will be set to `user`anyway since for the self agent any incoming message isexternal.- output_schema (Optional[Type[BaseModel]], optional): A pydantic+ response_format (Optional[Type[BaseModel]], optional): A pydanticmodel class that includes value types and field descriptionsused to generate a structured response by LLM. This schemahelps in defining the expected output format. (default:@@ -518,7 +518,7 @@ class ChatAgent(BaseAgent):self._step_tool_call_and_update(response))- if output_schema is not None:+ if response_format is not None:(output_messages,finish_reasons,@@ -526,7 +526,7 @@ class ChatAgent(BaseAgent):response_id,tool_call,num_tokens,- ) = self._structure_output_with_function(output_schema)+ ) = self._structure_output_with_function(response_format)tool_call_records.append(tool_call)info = self._step_get_info(@@ -608,7 +608,7 @@ class ChatAgent(BaseAgent):)if (- output_schema is not None+ response_format is not Noneand self.model_type.support_native_tool_calling):(@@ -618,7 +618,7 @@ class ChatAgent(BaseAgent):response_id,tool_call,num_tokens,- ) = self._structure_output_with_function(output_schema)+ ) = self._structure_output_with_function(response_format)tool_call_records.append(tool_call)info = self._step_get_info(@@ -647,7 +647,7 @@ class ChatAgent(BaseAgent):async def step_async(self,input_message: BaseMessage,- output_schema: Optional[Type[BaseModel]] = None,+ response_format: Optional[Type[BaseModel]] = None,) -> ChatAgentResponse:r"""Performs a single step in the chat session by generating a responseto the input message. This agent step can call async function calls.@@ -658,7 +658,7 @@ class ChatAgent(BaseAgent):either `user` or `assistant` but it will be set to `user`anyway since for the self agent any incoming message isexternal.- output_schema (Optional[Type[BaseModel]], optional): A pydantic+ response_format (Optional[Type[BaseModel]], optional): A pydanticmodel class that includes value types and field descriptionsused to generate a structured response by LLM. This schemahelps in defining the expected output format. (default:@@ -718,7 +718,7 @@ class ChatAgent(BaseAgent):)if (- output_schema is not None+ response_format is not Noneand self.model_type.support_native_tool_calling):(@@ -728,7 +728,7 @@ class ChatAgent(BaseAgent):response_id,tool_call_record,num_tokens,- ) = self._structure_output_with_function(output_schema)+ ) = self._structure_output_with_function(response_format)tool_call_records.append(tool_call_record)info = self._step_get_info(@@ -795,7 +795,7 @@ class ChatAgent(BaseAgent):return func_recorddef _structure_output_with_function(- self, output_schema: Type[BaseModel]+ self, response_format: Type[BaseModel]) -> Tuple[List[BaseMessage],List[str],@@ -809,7 +809,7 @@ class ChatAgent(BaseAgent):"""from camel.toolkits import FunctionTool- schema_json = get_pydantic_object_schema(output_schema)+ schema_json = get_pydantic_object_schema(response_format)func_str = json_to_function_code(schema_json)func_callable = func_string_to_callable(func_str)func = FunctionTool(func_callable)diff --git a/camel/configs/anthropic_config.py b/camel/configs/anthropic_config.pyindex c9470e14c..037a26e7b 100644--- a/camel/configs/anthropic_config.py+++ b/camel/configs/anthropic_config.py@@ -15,9 +15,8 @@ from __future__ import annotationsfrom typing import List, Union-from openai._types import NOT_GIVEN, NotGiven-from camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass AnthropicConfig(BaseConfig):@@ -55,9 +54,7 @@ class AnthropicConfig(BaseConfig):(default: :obj:`5`)metadata: An object describing metadata about the request.stream (bool, optional): Whether to incrementally stream the response- using server-sent events.- (default: :obj:`False`)-+ using server-sent events. (default: :obj:`False`)"""max_tokens: int = 256diff --git a/camel/configs/groq_config.py b/camel/configs/groq_config.pyindex 43fe2e076..e978a5262 100644--- a/camel/configs/groq_config.py+++ b/camel/configs/groq_config.py@@ -15,9 +15,8 @@ from __future__ import annotationsfrom typing import Optional, Sequence, Union-from openai._types import NOT_GIVEN, NotGiven-from camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass GroqConfig(BaseConfig):diff --git a/camel/configs/ollama_config.py b/camel/configs/ollama_config.pyindex a6a3aa973..d389ffa70 100644--- a/camel/configs/ollama_config.py+++ b/camel/configs/ollama_config.py@@ -15,9 +15,8 @@ from __future__ import annotationsfrom typing import Sequence, Union-from openai._types import NOT_GIVEN, NotGiven-from camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass OllamaConfig(BaseConfig):diff --git a/camel/configs/openai_config.py b/camel/configs/openai_config.pyindex b90486fe1..8919d3e53 100644--- a/camel/configs/openai_config.py+++ b/camel/configs/openai_config.py@@ -15,10 +15,10 @@ from __future__ import annotationsfrom typing import Optional, Sequence, Union-from openai._types import NOT_GIVEN, NotGivenfrom pydantic import Fieldfrom camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass ChatGPTConfig(BaseConfig):diff --git a/camel/configs/samba_config.py b/camel/configs/samba_config.pyindex 409f939cf..61a0a1ed8 100644--- a/camel/configs/samba_config.py+++ b/camel/configs/samba_config.py@@ -15,10 +15,10 @@ from __future__ import annotationsfrom typing import Any, Dict, Optional, Sequence, Union-from openai._types import NOT_GIVEN, NotGivenfrom pydantic import Fieldfrom camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass SambaFastAPIConfig(BaseConfig):diff --git a/camel/configs/togetherai_config.py b/camel/configs/togetherai_config.pyindex e64f5d18c..80ffad655 100644--- a/camel/configs/togetherai_config.py+++ b/camel/configs/togetherai_config.py@@ -15,10 +15,10 @@ from __future__ import annotationsfrom typing import Any, Sequence, Union-from openai._types import NOT_GIVEN, NotGivenfrom pydantic import Fieldfrom camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass TogetherAIConfig(BaseConfig):diff --git a/camel/configs/vllm_config.py b/camel/configs/vllm_config.pyindex 8efbeca63..11872a517 100644--- a/camel/configs/vllm_config.py+++ b/camel/configs/vllm_config.py@@ -15,10 +15,10 @@ from __future__ import annotationsfrom typing import Sequence, Union-from openai._types import NOT_GIVEN, NotGivenfrom pydantic import Fieldfrom camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGiven# flake8: noqa: E501diff --git a/camel/configs/zhipuai_config.py b/camel/configs/zhipuai_config.pyindex 21bbec1e7..907977552 100644--- a/camel/configs/zhipuai_config.py+++ b/camel/configs/zhipuai_config.py@@ -15,9 +15,8 @@ from __future__ import annotationsfrom typing import Optional, Sequence, Union-from openai._types import NOT_GIVEN, NotGiven-from camel.configs.base_config import BaseConfig+from camel.types import NOT_GIVEN, NotGivenclass ZhipuAIConfig(BaseConfig):diff --git a/camel/embeddings/openai_embedding.py b/camel/embeddings/openai_embedding.pyindex 2fe1d71cf..8b98a8a37 100644--- a/camel/embeddings/openai_embedding.py+++ b/camel/embeddings/openai_embedding.py@@ -16,10 +16,10 @@ from __future__ import annotationsimport osfrom typing import Any-from openai import NOT_GIVEN, NotGiven, OpenAI+from openai import OpenAIfrom camel.embeddings.base import BaseEmbedding-from camel.types import EmbeddingModelType+from camel.types import NOT_GIVEN, EmbeddingModelType, NotGivenfrom camel.utils import api_keys_requireddiff --git a/camel/loaders/firecrawl_reader.py b/camel/loaders/firecrawl_reader.pyindex 6bfe76959..da05fbc9f 100644--- a/camel/loaders/firecrawl_reader.py+++ b/camel/loaders/firecrawl_reader.py@@ -155,12 +155,12 @@ class Firecrawl:except Exception as e:raise RuntimeError(f"Failed to scrape the URL: {e}")- def structured_scrape(self, url: str, output_schema: BaseModel) -> Dict:+ def structured_scrape(self, url: str, response_format: BaseModel) -> Dict:r"""Use LLM to extract structured data from given URL.Args:url (str): The URL to read.- output_schema (BaseModel): A pydantic model+ response_format (BaseModel): A pydantic modelthat includes value types and field descriptions used togenerate a structured response by LLM. This schema helpsin defining the expected output format.@@ -176,7 +176,7 @@ class Firecrawl:url,{'formats': ['extract'],- 'extract': {'schema': output_schema.model_json_schema()},+ 'extract': {'schema': response_format.model_json_schema()},},)return data.get("extract", {})diff --git a/camel/models/anthropic_model.py b/camel/models/anthropic_model.pyindex 8f2a51571..bd7958a82 100644--- a/camel/models/anthropic_model.py+++ b/camel/models/anthropic_model.py@@ -14,8 +14,6 @@import osfrom typing import Any, Dict, List, Optional, Union-from openai import NOT_GIVEN-from camel.configs import ANTHROPIC_API_PARAMS, AnthropicConfigfrom camel.messages import OpenAIMessagefrom camel.models.base_model import BaseModelBackend@@ -24,6 +22,7 @@ from camel.utils import (AnthropicTokenCounter,BaseTokenCounter,api_keys_required,+ dependencies_required,)@@ -46,6 +45,7 @@ class AnthropicModel(BaseModelBackend):will be used. (default: :obj:`None`)"""+ @dependencies_required('anthropic')def __init__(self,model_type: Union[ModelType, str],@@ -122,6 +122,7 @@ class AnthropicModel(BaseModelBackend):Returns:ChatCompletion: Response in the OpenAI API format."""+ from anthropic import NOT_GIVENif messages[0]["role"] == "system":sys_msg = str(messages.pop(0)["content"])diff --git a/camel/models/gemini_model.py b/camel/models/gemini_model.pyindex 12034dd28..3448fea26 100644--- a/camel/models/gemini_model.py+++ b/camel/models/gemini_model.py@@ -27,6 +27,7 @@ from camel.utils import (BaseTokenCounter,GeminiTokenCounter,api_keys_required,+ dependencies_required,)if TYPE_CHECKING:@@ -56,6 +57,7 @@ class GeminiModel(BaseModelBackend):limitation of the current camel design."""+ @dependencies_required('google')def __init__(self,model_type: Union[ModelType, str],diff --git a/camel/models/litellm_model.py b/camel/models/litellm_model.pyindex a52532b27..1b00011d9 100644--- a/camel/models/litellm_model.py+++ b/camel/models/litellm_model.py@@ -17,7 +17,11 @@ from camel.configs import LITELLM_API_PARAMS, LiteLLMConfigfrom camel.messages import OpenAIMessagefrom camel.models import BaseModelBackendfrom camel.types import ChatCompletion, ModelType-from camel.utils import BaseTokenCounter, LiteLLMTokenCounter+from camel.utils import (+ BaseTokenCounter,+ LiteLLMTokenCounter,+ dependencies_required,+)class LiteLLMModel(BaseModelBackend):@@ -41,6 +45,7 @@ class LiteLLMModel(BaseModelBackend):# NOTE: Currently stream mode is not supported.+ @dependencies_required('litellm')def __init__(self,model_type: Union[ModelType, str],diff --git a/camel/models/mistral_model.py b/camel/models/mistral_model.pyindex 1ef121396..c48f73e89 100644--- a/camel/models/mistral_model.py+++ b/camel/models/mistral_model.py@@ -28,6 +28,7 @@ from camel.utils import (BaseTokenCounter,OpenAITokenCounter,api_keys_required,+ dependencies_required,)try:@@ -58,6 +59,7 @@ class MistralModel(BaseModelBackend):be used. (default: :obj:`None`)"""+ @dependencies_required('mistralai')def __init__(self,model_type: Union[ModelType, str],diff --git a/camel/models/reka_model.py b/camel/models/reka_model.pyindex d8ddb62e7..cfdc0129c 100644--- a/camel/models/reka_model.py+++ b/camel/models/reka_model.py@@ -21,6 +21,7 @@ from camel.utils import (BaseTokenCounter,OpenAITokenCounter,api_keys_required,+ dependencies_required,)if TYPE_CHECKING:@@ -55,6 +56,7 @@ class RekaModel(BaseModelBackend):be used. (default: :obj:`None`)"""+ @dependencies_required('reka')def __init__(self,model_type: Union[ModelType, str],diff --git a/camel/types/__init__.py b/camel/types/__init__.pyindex a162c5a61..9918574e8 100644--- a/camel/types/__init__.py+++ b/camel/types/__init__.py@@ -28,6 +28,7 @@ from .enums import (VoiceType,)from .openai_types import (+ NOT_GIVEN,ChatCompletion,ChatCompletionAssistantMessageParam,ChatCompletionChunk,@@ -38,6 +39,7 @@ from .openai_types import (ChatCompletionUserMessageParam,Choice,CompletionUsage,+ NotGiven,)from .unified_model_type import UnifiedModelType@@ -67,4 +69,6 @@ __all__ = ['AudioModelType','VoiceType','UnifiedModelType',+ 'NOT_GIVEN',+ 'NotGiven',]diff --git a/camel/types/enums.py b/camel/types/enums.pyindex 82dc0b7ff..680830bde 100644--- a/camel/types/enums.py+++ b/camel/types/enums.py@@ -69,13 +69,15 @@ class ModelType(UnifiedModelType, Enum):GEMINI_1_5_PRO = "gemini-1.5-pro"# Mistral AI models- MISTRAL_LARGE = "mistral-large-latest"- MISTRAL_NEMO = "open-mistral-nemo"- MISTRAL_CODESTRAL = "codestral-latest"+ MISTRAL_3B = "ministral-3b-latest"MISTRAL_7B = "open-mistral-7b"+ MISTRAL_8B = "ministral-8b-latest"+ MISTRAL_CODESTRAL = "codestral-latest"+ MISTRAL_CODESTRAL_MAMBA = "open-codestral-mamba"+ MISTRAL_LARGE = "mistral-large-latest"MISTRAL_MIXTRAL_8x7B = "open-mixtral-8x7b"MISTRAL_MIXTRAL_8x22B = "open-mixtral-8x22b"- MISTRAL_CODESTRAL_MAMBA = "open-codestral-mamba"+ MISTRAL_NEMO = "open-mistral-nemo"MISTRAL_PIXTRAL_12B = "pixtral-12b-2409"# Reka models@@ -173,6 +175,8 @@ class ModelType(UnifiedModelType, Enum):ModelType.MISTRAL_MIXTRAL_8x22B,ModelType.MISTRAL_CODESTRAL_MAMBA,ModelType.MISTRAL_PIXTRAL_12B,+ ModelType.MISTRAL_8B,+ ModelType.MISTRAL_3B,}@property@@ -265,6 +269,8 @@ class ModelType(UnifiedModelType, Enum):ModelType.MISTRAL_LARGE,ModelType.MISTRAL_NEMO,ModelType.MISTRAL_PIXTRAL_12B,+ ModelType.MISTRAL_8B,+ ModelType.MISTRAL_3B,}:return 128_000elif self in {diff --git a/camel/types/openai_types.py b/camel/types/openai_types.pyindex c52358186..e60af44ad 100644--- a/camel/types/openai_types.py+++ b/camel/types/openai_types.py@@ -31,6 +31,7 @@ from openai.types.chat.chat_completion_user_message_param import (ChatCompletionUserMessageParam,)from openai.types.completion_usage import CompletionUsage+from openai._types import NOT_GIVEN, NotGivenChoice = ChoiceChatCompletion = ChatCompletion@@ -42,3 +43,5 @@ ChatCompletionUserMessageParam = ChatCompletionUserMessageParamChatCompletionAssistantMessageParam = ChatCompletionAssistantMessageParamChatCompletionFunctionMessageParam = ChatCompletionFunctionMessageParamCompletionUsage = CompletionUsage+NOT_GIVEN = NOT_GIVEN+NotGiven = NotGivendiff --git a/camel/utils/token_counting.py b/camel/utils/token_counting.pyindex dfcf0e6d1..f1ea74649 100644--- a/camel/utils/token_counting.py+++ b/camel/utils/token_counting.py@@ -28,6 +28,7 @@ from camel.types import (OpenAIVisionDetailType,UnifiedModelType,)+from camel.utils import dependencies_requiredif TYPE_CHECKING:from mistral_common.protocol.instruct.request import ( # type:ignore[import-not-found]@@ -217,6 +218,7 @@ class OpenAITokenCounter(BaseTokenCounter):class AnthropicTokenCounter(BaseTokenCounter):+ @dependencies_required('anthropic')def __init__(self):r"""Constructor for the token counter for Anthropic models."""from anthropic import Anthropicdiff --git a/camel/workforce/role_playing_worker.py b/camel/workforce/role_playing_worker.pyindex 71d2d4706..229f1102b 100644--- a/camel/workforce/role_playing_worker.py+++ b/camel/workforce/role_playing_worker.py@@ -172,7 +172,7 @@ class RolePlayingWorker(Worker):role_name="User",content=prompt,)- response = self.summarize_agent.step(req, output_schema=TaskResult)+ response = self.summarize_agent.step(req, response_format=TaskResult)result_dict = ast.literal_eval(response.msg.content)task_result = TaskResult(**result_dict)task.result = task_result.contentdiff --git a/camel/workforce/single_agent_worker.py b/camel/workforce/single_agent_worker.pyindex 6d87344d8..d3291b9d4 100644--- a/camel/workforce/single_agent_worker.py+++ b/camel/workforce/single_agent_worker.py@@ -77,7 +77,7 @@ class SingleAgentWorker(Worker):content=prompt,)try:- response = self.worker.step(req, output_schema=TaskResult)+ response = self.worker.step(req, response_format=TaskResult)except Exception as e:print(f"{Fore.RED}Error occurred while processing task {task.id}:"diff --git a/camel/workforce/workforce.py b/camel/workforce/workforce.pyindex 9d4628919..5e967542d 100644--- a/camel/workforce/workforce.py+++ b/camel/workforce/workforce.py@@ -287,7 +287,7 @@ class Workforce(BaseNode):)response = self.coordinator_agent.step(- req, output_schema=TaskAssignResult+ req, response_format=TaskAssignResult)result_dict = ast.literal_eval(response.msg.content)task_assign_result = TaskAssignResult(**result_dict)@@ -319,7 +319,7 @@ class Workforce(BaseNode):role_name="User",content=prompt,)- response = self.coordinator_agent.step(req, output_schema=WorkerConf)+ response = self.coordinator_agent.step(req, response_format=WorkerConf)result_dict = ast.literal_eval(response.msg.content)new_node_conf = WorkerConf(**result_dict)diff --git a/docs/key_modules/models.md b/docs/key_modules/models.mdindex 5d9e95c5c..7b0615eed 100644--- a/docs/key_modules/models.md+++ b/docs/key_modules/models.md@@ -24,6 +24,8 @@ The following table lists currently supported model platforms by CAMEL.| OpenAI Compatible | Depends on the provider | ----- || Mistral AI | mistral-large-2 | N || Mistral AI | pixtral-12b-2409 | Y |+| Mistral AI | ministral-8b-latest | N |+| Mistral AI | ministral-3b-latest | N || Mistral AI | open-mistral-nemo | N || Mistral AI | codestral | N || Mistral AI | open-mistral-7b | N |diff --git a/examples/loaders/firecrawl_example.py b/examples/loaders/firecrawl_example.pyindex 99fb85ee8..8c7eec86b 100644--- a/examples/loaders/firecrawl_example.py+++ b/examples/loaders/firecrawl_example.py@@ -68,7 +68,7 @@ class TopArticlesSchema(BaseModel):response = firecrawl.structured_scrape(- url='https://news.ycombinator.com', output_schema=TopArticlesSchema+ url='https://news.ycombinator.com', response_format=TopArticlesSchema)print(response)diff --git a/examples/models/mistral_model_example.py b/examples/models/mistral_model_example.pyindex 1c275d604..f2ee6b285 100644--- a/examples/models/mistral_model_example.py+++ b/examples/models/mistral_model_example.py@@ -24,7 +24,7 @@ from camel.types import ModelPlatformType, ModelTypemodel = ModelFactory.create(model_platform=ModelPlatformType.MISTRAL,- model_type=ModelType.MISTRAL_LARGE,+ model_type=ModelType.MISTRAL_8B,model_config_dict=MistralConfig(temperature=0.0).as_dict(),)diff --git a/examples/structured_response/json_format_reponse_with_tools.py b/examples/structured_response/json_format_reponse_with_tools.pyindex 03cb662fc..44814249c 100644--- a/examples/structured_response/json_format_reponse_with_tools.py+++ b/examples/structured_response/json_format_reponse_with_tools.py@@ -68,7 +68,7 @@ user_msg = BaseMessage.make_user_message()# Get response information-response = camel_agent.step(user_msg, output_schema=Schema)+response = camel_agent.step(user_msg, response_format=Schema)print(response.msgs[0].content)"""{'current_age': '928', 'calculated_age': '938'}diff --git a/examples/structured_response/json_format_response.py b/examples/structured_response/json_format_response.pyindex ec9ed4184..33b8545d6 100644--- a/examples/structured_response/json_format_response.py+++ b/examples/structured_response/json_format_response.py@@ -46,7 +46,7 @@ user_msg = BaseMessage.make_user_message()# Get response information-response = camel_agent.step(user_msg, output_schema=JokeResponse)+response = camel_agent.step(user_msg, response_format=JokeResponse)print(response.msgs[0].content)"""{'joke': "Why couldn't the bicycle find its way home? It lost its bearings!"diff --git a/poetry.lock b/poetry.lockindex 03c61e20f..3de352d5f 100644--- a/poetry.lock+++ b/poetry.lock@@ -650,13 +650,13 @@ css = ["tinycss2 (>=1.1.0,<1.3)"][[package]]name = "botocore"-version = "1.35.42"+version = "1.35.43"description = "Low-level, data-driven core of boto 3."optional = truepython-versions = ">=3.8"files = [- {file = "botocore-1.35.42-py3-none-any.whl", hash = "sha256:05af0bb8b9cea7ce7bc589c332348d338a21b784e9d088a588fd10ec145007ff"},- {file = "botocore-1.35.42.tar.gz", hash = "sha256:af348636f73dc24b7e2dc760a34d08c8f2f94366e9b4c78d877307b128abecef"},+ {file = "botocore-1.35.43-py3-none-any.whl", hash = "sha256:7cfdee9117617da97daaf259dd8484bcdc259c59eb7d1ce7db9ecf8506b7d36c"},+ {file = "botocore-1.35.43.tar.gz", hash = "sha256:04539b85ade060601a3023cacb538fc17aad8c059a5a2e18fe4bc5d0d91fbd72"},][package.dependencies]@@ -2097,12 +2097,12 @@ files = [google-auth = ">=2.14.1,<3.0.dev0"googleapis-common-protos = ">=1.56.2,<2.0.dev0"grpcio = [- {version = ">=1.33.2,<2.0dev", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""},{version = ">=1.49.1,<2.0dev", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""},+ {version = ">=1.33.2,<2.0dev", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""},]grpcio-status = [- {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""},{version = ">=1.49.1,<2.0.dev0", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""},+ {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""},]proto-plus = ">=1.22.3,<2.0.0dev"protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<6.0.0.dev0"@@ -2638,13 +2638,13 @@ files = [[[package]]name = "huggingface-hub"-version = "0.25.2"+version = "0.26.0"description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub"optional = falsepython-versions = ">=3.8.0"files = [- {file = "huggingface_hub-0.25.2-py3-none-any.whl", hash = "sha256:1897caf88ce7f97fe0110603d8f66ac264e3ba6accdf30cd66cc0fed5282ad25"},- {file = "huggingface_hub-0.25.2.tar.gz", hash = "sha256:a1014ea111a5f40ccd23f7f7ba8ac46e20fa3b658ced1f86a00c75c06ec6423c"},+ {file = "huggingface_hub-0.26.0-py3-none-any.whl", hash = "sha256:e43b8f36042b2103b48dea822535e08f5f089c4aa7013a067fca7b4ebf7f85a3"},+ {file = "huggingface_hub-0.26.0.tar.gz", hash = "sha256:524fe9281b015b76aa73ff1a83bf1cbe8cab851c9ac5ae5fcd2a25d5173ce629"},][package.dependencies]@@ -2657,16 +2657,16 @@ tqdm = ">=4.42.1"typing-extensions = ">=3.7.4.3"[package.extras]-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]cli = ["InquirerPy (==0.3.4)"]-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]fastai = ["fastai (>=2.4)", "fastcore (>=1.3.27)", "toml"]hf-transfer = ["hf-transfer (>=0.1.4)"]-inference = ["aiohttp", "minijinja (>=1.0)"]-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]+inference = ["aiohttp"]+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.5.0)"]tensorflow = ["graphviz", "pydot", "tensorflow"]tensorflow-testing = ["keras (<3.0)", "tensorflow"]-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]torch = ["safetensors[torch]", "torch"]typing = ["types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)"]@@ -3420,13 +3420,13 @@ files = [[[package]]name = "litellm"-version = "1.49.6"+version = "1.49.7"description = "Library to easily interface with LLM API providers"optional = truepython-versions = "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8"files = [- {file = "litellm-1.49.6-py3-none-any.whl", hash = "sha256:c3b1dc25861850e8c2409e14198325019fe22680bf0c455e0124c23e6b5de318"},- {file = "litellm-1.49.6.tar.gz", hash = "sha256:cd82b332e11d80bd7e8b866b407bfbda8afe8bcf109687be5747f0f85f09c74a"},+ {file = "litellm-1.49.7-py3-none-any.whl", hash = "sha256:30f0c5b1b0a1466ae29006f3d3b29dd8a3836387375cc2efbde9a5d76bc92673"},+ {file = "litellm-1.49.7.tar.gz", hash = "sha256:9442b5c0922580ce3d536030247800c0112c64c0f123aad1a4a87872e51f0e09"},][package.dependencies]@@ -3710,22 +3710,22 @@ files = [[[package]]name = "marshmallow"-version = "3.22.0"+version = "3.23.0"description = "A lightweight library for converting complex datatypes to and from native Python datatypes."optional = true-python-versions = ">=3.8"+python-versions = ">=3.9"files = [- {file = "marshmallow-3.22.0-py3-none-any.whl", hash = "sha256:71a2dce49ef901c3f97ed296ae5051135fd3febd2bf43afe0ae9a82143a494d9"},- {file = "marshmallow-3.22.0.tar.gz", hash = "sha256:4972f529104a220bb8637d595aa4c9762afbe7f7a77d82dc58c1615d70c5823e"},+ {file = "marshmallow-3.23.0-py3-none-any.whl", hash = "sha256:82f20a2397834fe6d9611b241f2f7e7b680ed89c49f84728a1ad937be6b4bdf4"},+ {file = "marshmallow-3.23.0.tar.gz", hash = "sha256:98d8827a9f10c03d44ead298d2e99c6aea8197df18ccfad360dae7f89a50da2e"},][package.dependencies]packaging = ">=17.0"[package.extras]-dev = ["marshmallow[tests]", "pre-commit (>=3.5,<4.0)", "tox"]-docs = ["alabaster (==1.0.0)", "autodocsumm (==0.2.13)", "sphinx (==8.0.2)", "sphinx-issues (==4.1.0)", "sphinx-version-warning (==1.1.2)"]-tests = ["pytest", "pytz", "simplejson"]+dev = ["marshmallow[tests]", "pre-commit (>=3.5,<5.0)", "tox"]+docs = ["alabaster (==1.0.0)", "autodocsumm (==0.2.13)", "sphinx (==8.1.3)", "sphinx-issues (==5.0.0)", "sphinx-version-warning (==1.1.2)"]+tests = ["pytest", "simplejson"][[package]]name = "matplotlib"@@ -4166,13 +4166,13 @@ testing-docutils = ["pygments", "pytest (>=8,<9)", "pytest-param-files (>=0.6.0,[[package]]name = "narwhals"-version = "1.9.3"+version = "1.9.4"description = "Extremely lightweight compatibility layer between dataframe libraries"optional = falsepython-versions = ">=3.8"files = [- {file = "narwhals-1.9.3-py3-none-any.whl", hash = "sha256:598d09227bef31f42ec25840728f3113e7e37c30d5430ae8126a1c8bd58177f9"},- {file = "narwhals-1.9.3.tar.gz", hash = "sha256:5b3f52c02a86730a611497e6ffbaccaa3df86fc26470c23e3fb40dc2bc793ebb"},+ {file = "narwhals-1.9.4-py3-none-any.whl", hash = "sha256:cdd16f73268a3f0d3327aa9e4c6ab25a0b277629d6710bef58e86f40e57e5cc9"},+ {file = "narwhals-1.9.4.tar.gz", hash = "sha256:5de1f2d7bfbe555573d945fe1d760469a05784f3e69b7bc1b5b1303aae7946a1"},][package.extras]@@ -4730,13 +4730,13 @@ sympy = "*"[[package]]name = "openai"-version = "1.51.2"+version = "1.52.0"description = "The official Python library for the openai API"optional = falsepython-versions = ">=3.7.1"files = [- {file = "openai-1.51.2-py3-none-any.whl", hash = "sha256:5c5954711cba931423e471c37ff22ae0fd3892be9b083eee36459865fbbb83fa"},- {file = "openai-1.51.2.tar.gz", hash = "sha256:c6a51fac62a1ca9df85a522e462918f6bb6bc51a8897032217e453a0730123a6"},+ {file = "openai-1.52.0-py3-none-any.whl", hash = "sha256:0c249f20920183b0a2ca4f7dba7b0452df3ecd0fa7985eb1d91ad884bc3ced9c"},+ {file = "openai-1.52.0.tar.gz", hash = "sha256:95c65a5f77559641ab8f3e4c3a050804f7b51d278870e2ec1f7444080bfe565a"},][package.dependencies]@@ -4803,9 +4803,9 @@ files = [[package.dependencies]numpy = [+ {version = ">=1.23.5", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},{version = ">=1.21.4", markers = "python_version >= \"3.10\" and platform_system == \"Darwin\" and python_version < \"3.11\""},{version = ">=1.21.2", markers = "platform_system != \"Darwin\" and python_version >= \"3.10\" and python_version < \"3.11\""},- {version = ">=1.23.5", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},{version = ">=1.26.0", markers = "python_version >= \"3.12\""},]@@ -4967,8 +4967,8 @@ files = [[package.dependencies]numpy = [- {version = ">=1.22.4", markers = "python_version < \"3.11\""},{version = ">=1.23.2", markers = "python_version == \"3.11\""},+ {version = ">=1.22.4", markers = "python_version < \"3.11\""},{version = ">=1.26.0", markers = "python_version >= \"3.12\""},]python-dateutil = ">=2.8.2"@@ -8206,6 +8206,46 @@ files = [{file = "tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed"},]+[[package]]+name = "torch"+version = "2.1.0"+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"+optional = true+python-versions = ">=3.8.0"+files = [+ {file = "torch-2.1.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:bf57f8184b2c317ef81fb33dc233ce4d850cd98ef3f4a38be59c7c1572d175db"},+ {file = "torch-2.1.0-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:a04a0296d47f28960f51c18c5489a8c3472f624ec3b5bcc8e2096314df8c3342"},+ {file = "torch-2.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:0bd691efea319b14ef239ede16d8a45c246916456fa3ed4f217d8af679433cc6"},+ {file = "torch-2.1.0-cp310-none-macosx_10_9_x86_64.whl", hash = "sha256:101c139152959cb20ab370fc192672c50093747906ee4ceace44d8dd703f29af"},+ {file = "torch-2.1.0-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:a6b7438a90a870e4cdeb15301519ae6c043c883fcd224d303c5b118082814767"},+ {file = "torch-2.1.0-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:2224622407ca52611cbc5b628106fde22ed8e679031f5a99ce286629fc696128"},+ {file = "torch-2.1.0-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:8132efb782cd181cc2dcca5e58effbe4217cdb2581206ac71466d535bf778867"},+ {file = "torch-2.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:5c3bfa91ce25ba10116c224c59d5b64cdcce07161321d978bd5a1f15e1ebce72"},+ {file = "torch-2.1.0-cp311-none-macosx_10_9_x86_64.whl", hash = "sha256:601b0a2a9d9233fb4b81f7d47dca9680d4f3a78ca3f781078b6ad1ced8a90523"},+ {file = "torch-2.1.0-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:3cd1dedff13884d890f18eea620184fb4cd8fd3c68ce3300498f427ae93aa962"},+ {file = "torch-2.1.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:fb7bf0cc1a3db484eb5d713942a93172f3bac026fcb377a0cd107093d2eba777"},+ {file = "torch-2.1.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:761822761fffaa1c18a62c5deb13abaa780862577d3eadc428f1daa632536905"},+ {file = "torch-2.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:458a6d6d8f7d2ccc348ac4d62ea661b39a3592ad15be385bebd0a31ced7e00f4"},+ {file = "torch-2.1.0-cp38-none-macosx_10_9_x86_64.whl", hash = "sha256:c8bf7eaf9514465e5d9101e05195183470a6215bb50295c61b52302a04edb690"},+ {file = "torch-2.1.0-cp38-none-macosx_11_0_arm64.whl", hash = "sha256:05661c32ec14bc3a157193d0f19a7b19d8e61eb787b33353cad30202c295e83b"},+ {file = "torch-2.1.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:556d8dd3e0c290ed9d4d7de598a213fb9f7c59135b4fee144364a8a887016a55"},+ {file = "torch-2.1.0-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:de7d63c6ecece118684415a3dbd4805af4a4c1ee1490cccf7405d8c240a481b4"},+ {file = "torch-2.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:2419cf49aaf3b2336c7aa7a54a1b949fa295b1ae36f77e2aecb3a74e3a947255"},+ {file = "torch-2.1.0-cp39-none-macosx_10_9_x86_64.whl", hash = "sha256:6ad491e70dbe4288d17fdbfc7fbfa766d66cbe219bc4871c7a8096f4a37c98df"},+ {file = "torch-2.1.0-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:421739685eba5e0beba42cb649740b15d44b0d565c04e6ed667b41148734a75b"},+]++[package.dependencies]+filelock = "*"+fsspec = "*"+jinja2 = "*"+networkx = "*"+sympy = "*"+typing-extensions = "*"++[package.extras]+opt-einsum = ["opt-einsum (>=3.3)"]+[[package]]name = "torch"version = "2.4.1"@@ -8260,6 +8300,44 @@ typing-extensions = ">=4.8.0"opt-einsum = ["opt-einsum (>=3.3)"]optree = ["optree (>=0.11.0)"]+[[package]]+name = "torchvision"+version = "0.16.0"+description = "image and video datasets and models for torch deep learning"+optional = true+python-versions = ">=3.8"+files = [+ {file = "torchvision-0.16.0-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:16c300fdbbe91469f5e9feef8d24c6acabd8849db502a06160dd76ba68e897a0"},+ {file = "torchvision-0.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ef5dec6c48b715353781b83749efcdea03835720a71b377684453ee117aab3c7"},+ {file = "torchvision-0.16.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:9e3a2012e463f498de21f6598cc7a266b9a8c6fe15788472fdc419233ea6f3f2"},+ {file = "torchvision-0.16.0-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:e4327e082b703921ae52caeee4f7839f7e6c73cfc5eedea468ecb5c1487ecdbf"},+ {file = "torchvision-0.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:62f01513687cce3480df8928fcc6c09b4aa0433d05ac75e82877acc773f6a568"},+ {file = "torchvision-0.16.0-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:31fdf289bdfb2976f65a14f79f6ddd1ee60113db34622674918e61521c2dc41f"},+ {file = "torchvision-0.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2294a6514a31a6fda562288b28cf6db57877237f4b56ff693262f237a7ed4035"},+ {file = "torchvision-0.16.0-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:6a24a1e83e4bc7a31b39ef05d2ca4cd2182e95ff10f525edffe1473f7ce16ca1"},+ {file = "torchvision-0.16.0-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:9ed5f21e5a56e466667c6f9f6f93dba2a75e29921108bd70043eaf8e9ba0a7cc"},+ {file = "torchvision-0.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:9ee3d4df7d4a84f883f8ad11fb6510549f40f68dd5469eae601d7e02fb4809b2"},+ {file = "torchvision-0.16.0-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:0c6f36d00b9ce412e367ad6f42e9054cbc890cd9ddd0d200ed9b3b52dd9c225b"},+ {file = "torchvision-0.16.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:597f60cb03e6f758a00b36b38506f6f38b6c3f1fdfd3921bb9abd60b72d522fd"},+ {file = "torchvision-0.16.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:eddd91da4603f1dbb340d9aca82344df64605a0897b17014ac8e0b54dd6e5716"},+ {file = "torchvision-0.16.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:79875f5247337723ec363762c2716bcfc13b78b3045e4e58847c696f03d9ed4d"},+ {file = "torchvision-0.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:550c9793637c5369fbcb4e4b6b0e6d53a4f6cc22389f0563ad60ab90e4f1c8ba"},+ {file = "torchvision-0.16.0-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:de7c7302fa2f67a2a151e595a8e7dc3865a445d952e99d5c682ba78f312fedc3"},+ {file = "torchvision-0.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f044cffd252fd293b6df46f38d7eeb2fd4fe931e0114c5263735e3b8c9c60a4f"},+ {file = "torchvision-0.16.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:8cb501061f6654da494dd975acc1fa301c4b8aacf96bdbcf1553f51a53ebfd1f"},+ {file = "torchvision-0.16.0-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:5a47108ae6a8effdf09fe35fd0c4d5414e69ca8d2334e87339de497b7b64b0c9"},+ {file = "torchvision-0.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:9b8f06e6a2f80576007b88846f74b680a1ad3b59d2e22b075587b430180e9cfa"},+]++[package.dependencies]+numpy = "*"+pillow = ">=5.3.0,<8.3.dev0 || >=8.4.dev0"+requests = "*"+torch = "2.1.0"++[package.extras]+scipy = ["scipy"]+[[package]]name = "torchvision"version = "0.19.1"@@ -8582,13 +8660,13 @@ urllib3 = ">=2"[[package]]name = "types-setuptools"-version = "75.1.0.20241014"+version = "75.2.0.20241018"description = "Typing stubs for setuptools"optional = falsepython-versions = ">=3.8"files = [- {file = "types-setuptools-75.1.0.20241014.tar.gz", hash = "sha256:29b0560a8d4b4a91174be085847002c69abfcb048e20b33fc663005aedf56804"},- {file = "types_setuptools-75.1.0.20241014-py3-none-any.whl", hash = "sha256:caab58366741fb99673d0138b6e2d760717f154cfb981b74fea5e8de40f0b703"},+ {file = "types-setuptools-75.2.0.20241018.tar.gz", hash = "sha256:bcb7aded3d1e546350d2293a3f9352b0d1887c87b2e5586e2b0325485e24837e"},+ {file = "types_setuptools-75.2.0.20241018-py3-none-any.whl", hash = "sha256:86eeada00390425c1251a88d4cc276a923a28e1caccc56e89c0acb2dd358e88d"},][[package]]@@ -8938,13 +9016,13 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)",[[package]]name = "virtualenv"-version = "20.26.6"+version = "20.27.0"description = "Virtual Python Environment builder"optional = false-python-versions = ">=3.7"+python-versions = ">=3.8"files = [- {file = "virtualenv-20.26.6-py3-none-any.whl", hash = "sha256:7345cc5b25405607a624d8418154577459c3e0277f5466dd79c49d5e492995f2"},- {file = "virtualenv-20.26.6.tar.gz", hash = "sha256:280aede09a2a5c317e409a00102e7077c6432c5a38f0ef938e643805a7ad2c48"},+ {file = "virtualenv-20.27.0-py3-none-any.whl", hash = "sha256:44a72c29cceb0ee08f300b314848c86e57bf8d1f13107a5e671fb9274138d655"},+ {file = "virtualenv-20.27.0.tar.gz", hash = "sha256:2ca56a68ed615b8fe4326d11a0dca5dfbe8fd68510fb6c6349163bed3c15f2b2"},][package.dependencies]@@ -9503,10 +9581,10 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools",type = ["pytest-mypy"][extras]-all = ["PyMuPDF", "accelerate", "agentops", "anthropic", "arxiv", "arxiv2text", "asknews", "azure-storage-blob", "beautifulsoup4", "botocore", "cohere", "datasets", "diffusers", "discord.py", "docker", "docx2txt", "duckduckgo-search", "firecrawl-py", "google-cloud-storage", "google-generativeai", "googlemaps", "imageio", "ipykernel", "jupyter_client", "litellm", "mistralai", "nebula3-python", "neo4j", "newspaper3k", "nltk", "openapi-spec-validator", "opencv-python", "pillow", "prance", "praw", "pyTelegramBotAPI", "pydub", "pygithub", "pymilvus", "pyowm", "qdrant-client", "rank-bm25", "redis", "reka-api", "requests_oauthlib", "scholarly", "sentence-transformers", "sentencepiece", "slack-sdk", "soundfile", "textblob", "torch", "transformers", "unstructured", "wikipedia", "wolframalpha"]+all = ["PyMuPDF", "accelerate", "agentops", "anthropic", "arxiv", "arxiv2text", "asknews", "azure-storage-blob", "beautifulsoup4", "botocore", "cohere", "datasets", "diffusers", "discord.py", "docker", "docx2txt", "duckduckgo-search", "firecrawl-py", "google-cloud-storage", "google-generativeai", "googlemaps", "imageio", "ipykernel", "jupyter_client", "litellm", "mistralai", "nebula3-python", "neo4j", "newspaper3k", "nltk", "openapi-spec-validator", "opencv-python", "pillow", "prance", "praw", "pyTelegramBotAPI", "pydub", "pygithub", "pymilvus", "pyowm", "qdrant-client", "rank-bm25", "redis", "reka-api", "requests_oauthlib", "scholarly", "sentence-transformers", "sentencepiece", "slack-sdk", "soundfile", "textblob", "torch", "torch", "transformers", "unstructured", "wikipedia", "wolframalpha"]encoders = ["sentence-transformers"]graph-storages = ["nebula3-python", "neo4j"]-huggingface-agent = ["accelerate", "datasets", "diffusers", "opencv-python", "sentencepiece", "soundfile", "torch", "transformers"]+huggingface-agent = ["accelerate", "datasets", "diffusers", "opencv-python", "sentencepiece", "soundfile", "torch", "torch", "transformers"]kv-stroages = ["redis"]model-platforms = ["anthropic", "google-generativeai", "litellm", "mistralai", "reka-api"]object-storages = ["azure-storage-blob", "botocore", "google-cloud-storage"]@@ -9520,4 +9598,4 @@ vector-databases = ["pymilvus", "qdrant-client"][metadata]lock-version = "2.0"python-versions = ">=3.10.0,<=3.13"-content-hash = "59d16ad8ec0df4a8f6c53f4090629e3d660354e5cb28e53aa83c1f73101f9fc3"+content-hash = "1a7f66248a4365fa2ba96812080f5d0e2970ddb0fd946665c8f9995f355116f8"diff --git a/pyproject.toml b/pyproject.tomlindex e709a8a7a..d5259e18f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -45,7 +45,7 @@ pillow = "^10.2.0"# model-platformslitellm = { version = "^1.38.1", optional = true }google-generativeai = { version = "^0.6.0", optional = true }-mistralai = { version = "^1.0.0", optional = true }+mistralai = { version = "^1.1.0", optional = true }reka-api = { version = "^3.0.8", optional = true }anthropic = { version = "^0.29.0", optional = true }@@ -54,7 +54,10 @@ transformers = { version = "^4", optional = true }diffusers = { version = "^0", optional = true }accelerate = { version = "^0", optional = true }datasets = { version = "^2", optional = true }-torch = { version = "^2", optional = true }+torch = [+ { version = "^2", optional = true, markers = "platform_system != 'Darwin' or platform_machine != 'arm64'" },+ { version = "2.1.0", optional = true, markers = "platform_system == 'Darwin' and platform_machine == 'arm64'" }+]soundfile = { version = "^0", optional = true }sentencepiece = { version = "^0", optional = true }opencv-python = { version = "^4", optional = true }diff --git a/test/agents/test_chat_agent.py b/test/agents/test_chat_agent.pyindex a9f66298e..342c298a8 100644--- a/test/agents/test_chat_agent.py+++ b/test/agents/test_chat_agent.py@@ -164,7 +164,7 @@ def test_chat_agent_step_with_structure_response():content="Tell a jokes.",)- response = assistant.step(user_msg, output_schema=JokeResponse)+ response = assistant.step(user_msg, response_format=JokeResponse)response_content_json = ast.literal_eval(response.msgs[0].content)joke_response_keys = set(JokeResponse.model_json_schema()["properties"].keys()diff --git a/test/loaders/test_firecrawl.py b/test/loaders/test_firecrawl.pyindex e8e6313ac..af8ac69d8 100644--- a/test/loaders/test_firecrawl.py+++ b/test/loaders/test_firecrawl.py@@ -168,11 +168,11 @@ def test_structured_scrape_failure():api_key='test_api_key', api_url='https://api.test.com')url = 'https://example.com'- output_schema = TopArticlesSchema+ response_format = TopArticlesSchemamock_app.scrape_url.side_effect = Exception('Error')try:- firecrawl.structured_scrape(url, output_schema)+ firecrawl.structured_scrape(url, response_format)except RuntimeError as e:assert 'Failed to perform structured scrape' in str(e)