From d50bb94fbf282a0dd25384afbb6dbb993a2cf2a7 Mon Sep 17 00:00:00 2001 From: AveryYay Date: Thu, 2 Jan 2025 22:38:48 -0500 Subject: [PATCH 1/5] bug: added prompt as a user message to RewardModelFilter --- .../self_instruct/filter/filter_function.py | 16 ++++++++++------ .../self_instruct/filter/instruction_filter.py | 12 ++++++++++-- camel/datagen/self_instruct/self_instruct.py | 8 ++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/camel/datagen/self_instruct/filter/filter_function.py b/camel/datagen/self_instruct/filter/filter_function.py index 4e7cf39935..339b604901 100644 --- a/camel/datagen/self_instruct/filter/filter_function.py +++ b/camel/datagen/self_instruct/filter/filter_function.py @@ -12,14 +12,12 @@ # limitations under the License. # ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. ========= +from camel.models.reward import BaseRewardModel import re from abc import ABC, abstractmethod from typing import List - from rouge import Rouge -from camel.models.reward import BaseRewardModel - class FilterFunction(ABC): r"""A base abstract class for filter functions. @@ -172,7 +170,12 @@ class RewardModelFilter(FilterFunction): to pass the filter. """ - def __init__(self, reward_model: BaseRewardModel, threshold: float = 0.5): + def __init__( + self, + reward_model: BaseRewardModel, + threshold: float = 0.5, + ): + self.prompt = "" self.reward_model = reward_model self.threshold = threshold @@ -190,8 +193,9 @@ def apply(self, instruction: str) -> bool: required score is not found in `scores`. """ - messages = [{"role": "user", "content": instruction}] - scores = self.reward_model.evaluate(messages) + data = [{"role": "user", "content": self.prompt}, + {"role": "assistant", "content": instruction}] + scores = self.reward_model.evaluate(data) score_types = self.reward_model.get_scores_types() if not score_types: raise ValueError("No score types available from the reward model.") diff --git a/camel/datagen/self_instruct/filter/instruction_filter.py b/camel/datagen/self_instruct/filter/instruction_filter.py index a1ea8726ff..5c2b90c832 100644 --- a/camel/datagen/self_instruct/filter/instruction_filter.py +++ b/camel/datagen/self_instruct/filter/instruction_filter.py @@ -13,7 +13,7 @@ # ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. ========= from typing import Any, Dict, List -from .filter_function import FilterFunction +from .filter_function import FilterFunction, RewardModelFilter from .filter_registry import FILTER_REGISTRY @@ -53,10 +53,16 @@ def add_filter(self, filter_function: FilterFunction): """ self.filters.append(filter_function) - def filter(self, instruction: str, return_details: bool = False): + def filter( + self, + prompt: str, + instruction: str, + return_details: bool = False + ): r"""Check if the given instruction passes all filter functions. Args: + prompt (str): The prompt of generating the instruction. instruction (str): The instruction to evaluate. return_details (bool): If True, returns a tuple (bool, List[str]) where the list contains the names of filters that failed. @@ -68,6 +74,8 @@ def filter(self, instruction: str, return_details: bool = False): """ failed_filters = [] for f in self.filters: + if isinstance(f, RewardModelFilter): + f.prompt = prompt if not f.apply(instruction): failed_filters.append(type(f).__name__) diff --git a/camel/datagen/self_instruct/self_instruct.py b/camel/datagen/self_instruct/self_instruct.py index d292eb52c7..99d41a1030 100644 --- a/camel/datagen/self_instruct/self_instruct.py +++ b/camel/datagen/self_instruct/self_instruct.py @@ -136,7 +136,7 @@ def sample_machine_tasks(self, count: int) -> List[dict]: return random.sample(self.machine_tasks, count) - def generate_machine_instruction(self) -> str: + def generate_machine_instruction(self) -> List: r"""Generate a machine instruction using the agent. Combines human and machine tasks based on the configured ratio to @@ -176,7 +176,7 @@ def generate_machine_instruction(self) -> str: for line in response.msgs[0].content.split("\n") if line.strip() ] - return generated_tasks[0] + return [prompt, generated_tasks[0]] def identify_instruction(self, instruction: str) -> bool: r"""Determine if the given instruction is a classification task. @@ -371,8 +371,8 @@ def generate(self): for f in self.instruction_filter.filters: if isinstance(f, RougeSimilarityFilter): f.existing_instructions = existing_instructions - instruction = self.generate_machine_instruction() - if self.instruction_filter.filter(instruction): + prompt, instruction = self.generate_machine_instruction() + if self.instruction_filter.filter(prompt, instruction): instruction_dict = { "id": f"machine_task_{len(self.machine_tasks) + 1}", "instruction": instruction, From 3d38f6501343fef3f6eb9a932ff96802a1615c36 Mon Sep 17 00:00:00 2001 From: AveryYay Date: Thu, 2 Jan 2025 22:43:02 -0500 Subject: [PATCH 2/5] pre-commit --- .../self_instruct/filter/filter_function.py | 16 ++++++++++------ .../self_instruct/filter/instruction_filter.py | 5 +---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/camel/datagen/self_instruct/filter/filter_function.py b/camel/datagen/self_instruct/filter/filter_function.py index 339b604901..7b88512153 100644 --- a/camel/datagen/self_instruct/filter/filter_function.py +++ b/camel/datagen/self_instruct/filter/filter_function.py @@ -12,12 +12,14 @@ # limitations under the License. # ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. ========= -from camel.models.reward import BaseRewardModel import re from abc import ABC, abstractmethod from typing import List + from rouge import Rouge +from camel.models.reward import BaseRewardModel + class FilterFunction(ABC): r"""A base abstract class for filter functions. @@ -171,9 +173,9 @@ class RewardModelFilter(FilterFunction): """ def __init__( - self, - reward_model: BaseRewardModel, - threshold: float = 0.5, + self, + reward_model: BaseRewardModel, + threshold: float = 0.5, ): self.prompt = "" self.reward_model = reward_model @@ -193,8 +195,10 @@ def apply(self, instruction: str) -> bool: required score is not found in `scores`. """ - data = [{"role": "user", "content": self.prompt}, - {"role": "assistant", "content": instruction}] + data = [ + {"role": "user", "content": self.prompt}, + {"role": "assistant", "content": instruction}, + ] scores = self.reward_model.evaluate(data) score_types = self.reward_model.get_scores_types() if not score_types: diff --git a/camel/datagen/self_instruct/filter/instruction_filter.py b/camel/datagen/self_instruct/filter/instruction_filter.py index 5c2b90c832..155cc1aa88 100644 --- a/camel/datagen/self_instruct/filter/instruction_filter.py +++ b/camel/datagen/self_instruct/filter/instruction_filter.py @@ -54,10 +54,7 @@ def add_filter(self, filter_function: FilterFunction): self.filters.append(filter_function) def filter( - self, - prompt: str, - instruction: str, - return_details: bool = False + self, prompt: str, instruction: str, return_details: bool = False ): r"""Check if the given instruction passes all filter functions. From f2928a9fe2f0e6e40323b215c8a18c93f2584fe6 Mon Sep 17 00:00:00 2001 From: AveryYay Date: Thu, 2 Jan 2025 23:30:59 -0500 Subject: [PATCH 3/5] docs: Changed doc in generate_machine_instruction --- camel/datagen/self_instruct/self_instruct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel/datagen/self_instruct/self_instruct.py b/camel/datagen/self_instruct/self_instruct.py index 99d41a1030..25a31a5b8e 100644 --- a/camel/datagen/self_instruct/self_instruct.py +++ b/camel/datagen/self_instruct/self_instruct.py @@ -143,7 +143,7 @@ def generate_machine_instruction(self) -> List: create a prompt for instruction generation. Returns: - str: A machine-generated instruction. + List: The prompt and a machine-generated instruction. """ sampled_human_tasks = self.sample_human_tasks( From 9a00d7cf4c88f9d3ff7cd6c36be7741634642af8 Mon Sep 17 00:00:00 2001 From: Wendong Date: Sat, 4 Jan 2025 01:13:03 +0800 Subject: [PATCH 4/5] new version --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- README.md | 2 +- camel/__init__.py | 2 +- docs/conf.py | 2 +- docs/cookbooks/agents_message.ipynb | 2 +- docs/cookbooks/agents_prompting.ipynb | 2 +- docs/cookbooks/agents_society.ipynb | 2 +- docs/cookbooks/agents_tracking.ipynb | 2 +- docs/cookbooks/agents_with_memory.ipynb | 2 +- docs/cookbooks/agents_with_rag.ipynb | 2 +- docs/cookbooks/agents_with_tools.ipynb | 2 +- .../cot_data_gen_sft_qwen_unsolth_upload_huggingface.ipynb | 2 +- docs/cookbooks/cot_data_gen_upload_to_huggingface.ipynb | 2 +- docs/cookbooks/create_your_first_agent.ipynb | 2 +- docs/cookbooks/create_your_first_agents_society.ipynb | 2 +- docs/cookbooks/critic_agents_and_tree_search.ipynb | 2 +- ...service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb | 2 +- ...rvice_Discord_bot_using_local_model_with_agentic_RAG.ipynb | 2 +- .../customer_service_Discord_bot_with_agentic_RAG.ipynb | 2 +- docs/cookbooks/embodied_agents.ipynb | 2 +- docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb | 2 +- docs/cookbooks/knowledge_graph.ipynb | 2 +- docs/cookbooks/model_speed_comparison.ipynb | 2 +- docs/cookbooks/roleplaying_scraper.ipynb | 2 +- ...ft_data_generation_and_unsloth_finetuning_Qwen2_5_7B.ipynb | 2 +- ...eneration_and_unsloth_finetuning_mistral_7b_instruct.ipynb | 2 +- ...sft_data_generation_and_unsloth_finetuning_tinyllama.ipynb | 2 +- docs/cookbooks/task_generation.ipynb | 2 +- docs/cookbooks/video_analysis.ipynb | 2 +- docs/cookbooks/workforce_judge_committee.ipynb | 2 +- docs/get_started/installation.md | 2 +- docs/key_modules/loaders.md | 4 ++-- pyproject.toml | 2 +- 33 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b61a174fc7..227f4860e2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -26,7 +26,7 @@ body: attributes: label: What version of camel are you using? description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here. - placeholder: E.g., 0.2.15 + placeholder: E.g., 0.2.16 validations: required: true diff --git a/README.md b/README.md index c45417812f..0382e500b8 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ conda create --name camel python=3.10 conda activate camel # Clone github repo -git clone -b v0.2.15 https://github.com/camel-ai/camel.git +git clone -b v0.2.16 https://github.com/camel-ai/camel.git # Change directory into project directory cd camel diff --git a/camel/__init__.py b/camel/__init__.py index e8dfceb6a0..5e91463857 100644 --- a/camel/__init__.py +++ b/camel/__init__.py @@ -14,7 +14,7 @@ from camel.logger import disable_logging, enable_logging, set_log_level -__version__ = '0.2.15' +__version__ = '0.2.16' __all__ = [ '__version__', diff --git a/docs/conf.py b/docs/conf.py index abf25f8663..0337a777de 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ project = 'CAMEL' copyright = '2024, CAMEL-AI.org' author = 'CAMEL-AI.org' -release = '0.2.14' +release = '0.2.16' html_favicon = ( 'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png' diff --git a/docs/cookbooks/agents_message.ipynb b/docs/cookbooks/agents_message.ipynb index 63af938249..43648dfcc4 100644 --- a/docs/cookbooks/agents_message.ipynb +++ b/docs/cookbooks/agents_message.ipynb @@ -101,7 +101,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ] }, { diff --git a/docs/cookbooks/agents_prompting.ipynb b/docs/cookbooks/agents_prompting.ipynb index 5134eafd3d..8489a2e09f 100644 --- a/docs/cookbooks/agents_prompting.ipynb +++ b/docs/cookbooks/agents_prompting.ipynb @@ -64,7 +64,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ] }, { diff --git a/docs/cookbooks/agents_society.ipynb b/docs/cookbooks/agents_society.ipynb index c3c0476821..c2e2c77df8 100644 --- a/docs/cookbooks/agents_society.ipynb +++ b/docs/cookbooks/agents_society.ipynb @@ -192,7 +192,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ] }, { diff --git a/docs/cookbooks/agents_tracking.ipynb b/docs/cookbooks/agents_tracking.ipynb index b327c21d44..afb3736541 100644 --- a/docs/cookbooks/agents_tracking.ipynb +++ b/docs/cookbooks/agents_tracking.ipynb @@ -64,7 +64,7 @@ }, "outputs": [], "source": [ - "%pip install camel-ai[all]==0.2.14\n", + "%pip install camel-ai[all]==0.2.16\n", "%pip install agentops==0.3.10" ] }, diff --git a/docs/cookbooks/agents_with_memory.ipynb b/docs/cookbooks/agents_with_memory.ipynb index e16c5ebc61..1feadf09a2 100644 --- a/docs/cookbooks/agents_with_memory.ipynb +++ b/docs/cookbooks/agents_with_memory.ipynb @@ -73,7 +73,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"" + "!pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/agents_with_rag.ipynb b/docs/cookbooks/agents_with_rag.ipynb index 2e7048f90a..0c3206ed65 100644 --- a/docs/cookbooks/agents_with_rag.ipynb +++ b/docs/cookbooks/agents_with_rag.ipynb @@ -75,7 +75,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"" + "!pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/agents_with_tools.ipynb b/docs/cookbooks/agents_with_tools.ipynb index d5440a2386..f6449c7047 100644 --- a/docs/cookbooks/agents_with_tools.ipynb +++ b/docs/cookbooks/agents_with_tools.ipynb @@ -77,7 +77,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"" + "!pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/cot_data_gen_sft_qwen_unsolth_upload_huggingface.ipynb b/docs/cookbooks/cot_data_gen_sft_qwen_unsolth_upload_huggingface.ipynb index 7df6958e90..eb3705c332 100644 --- a/docs/cookbooks/cot_data_gen_sft_qwen_unsolth_upload_huggingface.ipynb +++ b/docs/cookbooks/cot_data_gen_sft_qwen_unsolth_upload_huggingface.ipynb @@ -71,7 +71,7 @@ "outputs": [], "source": [ "%%capture\n", - "!pip install camel-ai==0.2.15" + "!pip install camel-ai==0.2.16" ] }, { diff --git a/docs/cookbooks/cot_data_gen_upload_to_huggingface.ipynb b/docs/cookbooks/cot_data_gen_upload_to_huggingface.ipynb index c7647583d1..caf758e217 100644 --- a/docs/cookbooks/cot_data_gen_upload_to_huggingface.ipynb +++ b/docs/cookbooks/cot_data_gen_upload_to_huggingface.ipynb @@ -71,7 +71,7 @@ "outputs": [], "source": [ "%%capture\n", - "!pip install camel-ai==0.2.15" + "!pip install camel-ai==0.2.16" ] }, { diff --git a/docs/cookbooks/create_your_first_agent.ipynb b/docs/cookbooks/create_your_first_agent.ipynb index b7f21ab6f2..963f1d603d 100644 --- a/docs/cookbooks/create_your_first_agent.ipynb +++ b/docs/cookbooks/create_your_first_agent.ipynb @@ -83,7 +83,7 @@ { "cell_type": "code", "source": [ - "!pip install \"camel-ai[all]==0.2.14\"" + "!pip install \"camel-ai[all]==0.2.16\"" ], "metadata": { "id": "UtcC3c-KVZmU" diff --git a/docs/cookbooks/create_your_first_agents_society.ipynb b/docs/cookbooks/create_your_first_agents_society.ipynb index 1aa88d04b8..009a81b072 100644 --- a/docs/cookbooks/create_your_first_agents_society.ipynb +++ b/docs/cookbooks/create_your_first_agents_society.ipynb @@ -77,7 +77,7 @@ { "cell_type": "code", "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ], "metadata": { "id": "RiwfwyyLYYxo" diff --git a/docs/cookbooks/critic_agents_and_tree_search.ipynb b/docs/cookbooks/critic_agents_and_tree_search.ipynb index 97655b9ffb..12c6564bf5 100644 --- a/docs/cookbooks/critic_agents_and_tree_search.ipynb +++ b/docs/cookbooks/critic_agents_and_tree_search.ipynb @@ -84,7 +84,7 @@ { "cell_type": "code", "source": [ - "%pip install \"camel-ai==0.2.14\"" + "%pip install \"camel-ai==0.2.16\"" ], "metadata": { "id": "UtcC3c-KVZmU" diff --git a/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb b/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb index fe91e97a13..98b465b5db 100644 --- a/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb +++ b/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb @@ -50,7 +50,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"\n", + "!pip install \"camel-ai[all]==0.2.16\"\n", "!pip install starlette\n", "!pip install nest_asyncio" ] diff --git a/docs/cookbooks/customer_service_Discord_bot_using_local_model_with_agentic_RAG.ipynb b/docs/cookbooks/customer_service_Discord_bot_using_local_model_with_agentic_RAG.ipynb index 55077340ef..a564e94363 100644 --- a/docs/cookbooks/customer_service_Discord_bot_using_local_model_with_agentic_RAG.ipynb +++ b/docs/cookbooks/customer_service_Discord_bot_using_local_model_with_agentic_RAG.ipynb @@ -51,7 +51,7 @@ "outputId": "72f5cfe5-60ea-48ba-e1e1-a0cdc4eb87ec" }, "source": [ - "!pip install \"camel-ai[all]==0.2.15\"\n", + "!pip install \"camel-ai[all]==0.2.16\"\n", "!pip install starlette\n", "!pip install nest_asyncio" ], diff --git a/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb b/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb index c4c26a3f5a..99333ec1d5 100644 --- a/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb +++ b/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb @@ -59,7 +59,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"\n", + "!pip install \"camel-ai[all]==0.2.16\"\n", "!pip install starlette\n", "!pip install nest_asyncio" ] diff --git a/docs/cookbooks/embodied_agents.ipynb b/docs/cookbooks/embodied_agents.ipynb index 7dce81e9b6..1b3e3ec02e 100644 --- a/docs/cookbooks/embodied_agents.ipynb +++ b/docs/cookbooks/embodied_agents.ipynb @@ -67,7 +67,7 @@ { "cell_type": "code", "source": [ - "%pip install \"camel-ai==0.2.14\"" + "%pip install \"camel-ai==0.2.16\"" ], "metadata": { "id": "UtcC3c-KVZmU" diff --git a/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb b/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb index f4c33ef34a..25e4dbad5d 100644 --- a/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb +++ b/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb @@ -81,7 +81,7 @@ }, "outputs": [], "source": [ - "pip install \"camel-ai[all]==0.2.14\"" + "pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/knowledge_graph.ipynb b/docs/cookbooks/knowledge_graph.ipynb index 2f8ebbbce0..13b5d4fbea 100644 --- a/docs/cookbooks/knowledge_graph.ipynb +++ b/docs/cookbooks/knowledge_graph.ipynb @@ -73,7 +73,7 @@ }, "outputs": [], "source": [ - "pip install \"camel-ai[all]==0.2.14\"" + "pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/model_speed_comparison.ipynb b/docs/cookbooks/model_speed_comparison.ipynb index 6b94b23277..13e7cfc460 100644 --- a/docs/cookbooks/model_speed_comparison.ipynb +++ b/docs/cookbooks/model_speed_comparison.ipynb @@ -63,7 +63,7 @@ { "cell_type": "code", "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ], "metadata": { "id": "UtcC3c-KVZmU" diff --git a/docs/cookbooks/roleplaying_scraper.ipynb b/docs/cookbooks/roleplaying_scraper.ipynb index 4f89892d28..c93f68ce54 100644 --- a/docs/cookbooks/roleplaying_scraper.ipynb +++ b/docs/cookbooks/roleplaying_scraper.ipynb @@ -89,7 +89,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai[all]==0.2.14\"" + "!pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_Qwen2_5_7B.ipynb b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_Qwen2_5_7B.ipynb index 9f4bdf925f..ebe37a083e 100644 --- a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_Qwen2_5_7B.ipynb +++ b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_Qwen2_5_7B.ipynb @@ -57,7 +57,7 @@ "%%capture\n", "!pip install unsloth\n", "# Install CAMEL-AI with no optional dependencies\n", - "!pip install camel-ai==0.2.14\n", + "!pip install camel-ai==0.2.16\n", "# Get Unsloth latest unsloth nightly\n", "!pip uninstall unsloth -y && pip install --upgrade --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git\n", "!pip install firecrawl" diff --git a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_mistral_7b_instruct.ipynb b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_mistral_7b_instruct.ipynb index 7d1c0df37c..58bcfe020d 100644 --- a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_mistral_7b_instruct.ipynb +++ b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_mistral_7b_instruct.ipynb @@ -57,7 +57,7 @@ "%%capture\n", "!pip install unsloth\n", "# Install CAMEL-AI with no optional dependencies\n", - "!pip install camel-ai==0.2.14\n", + "!pip install camel-ai==0.2.16\n", "# Get Unsloth\n", "!pip install --upgrade --no-deps \"unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@0de54572525788d09a6a9ef1efc7611e65dd7547\"\n", "!pip install firecrawl" diff --git a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_tinyllama.ipynb b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_tinyllama.ipynb index a7e67a5eab..0ac729f98c 100644 --- a/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_tinyllama.ipynb +++ b/docs/cookbooks/sft_data_generation_and_unsloth_finetuning_tinyllama.ipynb @@ -57,7 +57,7 @@ "%%capture\n", "!pip install unsloth\n", "# Install CAMEL-AI with no optional dependencies\n", - "!pip install camel-ai==0.2.14\n", + "!pip install camel-ai==0.2.16\n", "# Get Unsloth\n", "!pip install --upgrade --no-deps \"unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@0de54572525788d09a6a9ef1efc7611e65dd7547\"\n", "!pip install firecrawl" diff --git a/docs/cookbooks/task_generation.ipynb b/docs/cookbooks/task_generation.ipynb index ff66e52fac..62b2e4bb25 100644 --- a/docs/cookbooks/task_generation.ipynb +++ b/docs/cookbooks/task_generation.ipynb @@ -62,7 +62,7 @@ }, "outputs": [], "source": [ - "!pip install \"camel-ai==0.2.14\"" + "!pip install \"camel-ai==0.2.16\"" ] }, { diff --git a/docs/cookbooks/video_analysis.ipynb b/docs/cookbooks/video_analysis.ipynb index fa9bb6e352..6fe5dfb86a 100644 --- a/docs/cookbooks/video_analysis.ipynb +++ b/docs/cookbooks/video_analysis.ipynb @@ -28,7 +28,7 @@ }, "outputs": [], "source": [ - "%pip install \"camel-ai[all]==0.2.14\"" + "%pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/cookbooks/workforce_judge_committee.ipynb b/docs/cookbooks/workforce_judge_committee.ipynb index 2371b35690..26c3bf06b9 100644 --- a/docs/cookbooks/workforce_judge_committee.ipynb +++ b/docs/cookbooks/workforce_judge_committee.ipynb @@ -28,7 +28,7 @@ }, "outputs": [], "source": [ - "%pip install \"camel-ai[all]==0.2.14\"" + "%pip install \"camel-ai[all]==0.2.16\"" ] }, { diff --git a/docs/get_started/installation.md b/docs/get_started/installation.md index 14fdac8f34..493eb4e22d 100644 --- a/docs/get_started/installation.md +++ b/docs/get_started/installation.md @@ -60,7 +60,7 @@ conda create --name camel python=3.10 conda activate camel # Clone github repo -git clone -b v0.2.15 https://github.com/camel-ai/camel.git +git clone -b v0.2.16 https://github.com/camel-ai/camel.git # Change directory into project directory cd camel diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md index 67ebc08c67..a09ef7a72a 100644 --- a/docs/key_modules/loaders.md +++ b/docs/key_modules/loaders.md @@ -340,14 +340,14 @@ response = jina_reader.read_content("https://docs.camel-ai.org/") print(response) ``` ```markdown ->>>Welcome to CAMEL’s documentation! — CAMEL 0.2.14 documentation +>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.16 documentation =============== [Skip to main content](https://docs.camel-ai.org/#main-content) Back to top Ctrl+K - [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.14](https://docs.camel-ai.org/#) + [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.16](https://docs.camel-ai.org/#) Search Ctrl+K diff --git a/pyproject.toml b/pyproject.toml index 24063e2eca..79b33abd93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "camel-ai" -version = "0.2.15" +version = "0.2.16" authors = ["CAMEL-AI.org"] description = "Communicative Agents for AI Society Study" readme = "README.md" From f38b11fc77d4513abdcdcfeff4b468295d66c7c9 Mon Sep 17 00:00:00 2001 From: Wendong Date: Sat, 4 Jan 2025 02:06:27 +0800 Subject: [PATCH 5/5] update pre commit yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d39a63a2fe..f8adc2e1e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.3.5' + rev: 'v0.7' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes]