diff --git "a/\360\237\220\253_CAMEL_Creating_Your_First_Agent.ipynb" "b/\360\237\220\253_CAMEL_Creating_Your_First_Agent.ipynb" index e477fee..6c9d74f 100644 --- "a/\360\237\220\253_CAMEL_Creating_Your_First_Agent.ipynb" +++ "b/\360\237\220\253_CAMEL_Creating_Your_First_Agent.ipynb" @@ -130,8 +130,8 @@ "from getpass import getpass\n", "\n", "# Prompt for the API key securely\n", - "qwen_api_key = getpass('Enter your API key: ')\n", - "os.environ[\"QWEN_API_KEY\"] = qwen_api_key" + "qianfan_api_key = getpass('Enter your API key: ')\n", + "os.environ[\"QIANFAN_API_KEY\"] = qianfan_api_key" ] }, { @@ -175,13 +175,13 @@ "source": [ "from camel.models import ModelFactory\n", "from camel.types import ModelPlatformType, ModelType\n", - "from camel.configs import QwenConfig\n", + "from camel.configs import QianfanConfig\n", "\n", "# Define the model, here in this case we use gpt-4o-mini\n", "model = ModelFactory.create(\n", - " model_platform=ModelPlatformType.QWEN,\n", - " model_type=ModelType.QWEN_MAX,\n", - " model_config_dict=QwenConfig().as_dict(),\n", + " model_platform=ModelPlatformType.QIANFAN,\n", + " model_type=ModelType.ERNIE_4_5_TURBO_128K,\n", + " model_config_dict=QianfanConfig().as_dict(),\n", ")" ] }, diff --git "a/\360\237\220\253_CAMEL_Creating_Your_First_Agent_Society.ipynb" "b/\360\237\220\253_CAMEL_Creating_Your_First_Agent_Society.ipynb" index 42ee56f..853ae31 100644 --- "a/\360\237\220\253_CAMEL_Creating_Your_First_Agent_Society.ipynb" +++ "b/\360\237\220\253_CAMEL_Creating_Your_First_Agent_Society.ipynb" @@ -104,7 +104,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -126,13 +126,13 @@ "from getpass import getpass\n", "\n", "# Prompt for the API key securely\n", - "qwen_api_key = getpass('Enter your API key: ')\n", - "os.environ[\"QWEN_API_KEY\"] = qwen_api_key" + "qianfan_api_key = getpass('Enter your API key: ')\n", + "os.environ[\"QIANFAN_API_KEY\"] = qianfan_api_key" ] }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "metadata": { "id": "CmgKGeCxVON-" }, @@ -141,13 +141,13 @@ "# Import necessary classes\n", "from camel.societies import RolePlaying\n", "from camel.types import ModelType, ModelPlatformType\n", - "from camel.configs import QwenConfig\n", + "from camel.configs import QianfanConfig\n", "from camel.models import ModelFactory\n", "\n", "model = ModelFactory.create(\n", - " model_platform=ModelPlatformType.QWEN,\n", - " model_type=ModelType.QWEN_TURBO,\n", - " model_config_dict=QwenConfig().as_dict(),\n", + " model_platform=ModelPlatformType.QIANFAN,\n", + " model_type=ModelType.ERNIE_4_5_TURBO_128K,\n", + " model_config_dict=QianfanConfig().as_dict(),\n", ")" ] },