From cc885a027fc8a15631bbccdf4d82e325309821de Mon Sep 17 00:00:00 2001 From: ZQ Date: Thu, 2 Apr 2026 07:21:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/derisk-proxy-aliyun.toml | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/configs/derisk-proxy-aliyun.toml b/configs/derisk-proxy-aliyun.toml index 6173de23..bf6b4b37 100644 --- a/configs/derisk-proxy-aliyun.toml +++ b/configs/derisk-proxy-aliyun.toml @@ -29,7 +29,7 @@ temperature = 0.5 [[agent.llm.provider]] provider = "openai" api_base = "https://dashscope.aliyuncs.com/compatible-mode/v1" -api_key = "${DASHSCOPE_API_KEY_2:-sk-...}" +api_key = "sk-b882358e22b04b279860a45a9c89764f" [[agent.llm.provider.model]] name = "deepseek-r1" @@ -62,24 +62,24 @@ type = "file" # Default backend for file server default_backend = "oss" -[[serves.backends]] -type = "oss" -endpoint = "https://oss-cn-beijing.aliyuncs.com" -region = "oss-cn-beijing" -access_key_id = "${env:OSS_ACCESS_KEY_ID:-xxx}" -access_key_secret = "${env:OSS_ACCESS_KEY_SECRET:-xxx}" -fixed_bucket = "openderisk" - - -[sandbox] -type="local" -template_id="" -user_id="derisk" -agent_name="derisk" -repo_url="" -work_dir="/home/ubuntu" -skill_dir="/mnt/derisk/skills" -oss_ak="${env:OSS_ACCESS_KEY_ID:-xxx}" -oss_sk="${env:OSS_ACCESS_KEY_SECRET:-xxx}" -oss_endpoint="https://oss-cn-beijing.aliyuncs.com" -oss_bucket_name="openderisk" +#[[serves.backends]] +#type = "oss" +#endpoint = "https://oss-cn-beijing.aliyuncs.com" +#region = "oss-cn-beijing" +#access_key_id = "${env:OSS_ACCESS_KEY_ID:-xxx}" +#access_key_secret = "${env:OSS_ACCESS_KEY_SECRET:-xxx}" +#fixed_bucket = "openderisk" +# +# +#[sandbox] +#type="local" +#template_id="" +#user_id="derisk" +#agent_name="derisk" +#repo_url="" +#work_dir="/home/ubuntu" +#skill_dir="/mnt/derisk/skills" +#oss_ak="${env:OSS_ACCESS_KEY_ID:-xxx}" +#oss_sk="${env:OSS_ACCESS_KEY_SECRET:-xxx}" +#oss_endpoint="https://oss-cn-beijing.aliyuncs.com" +#oss_bucket_name="openderisk" From 129ba40b96e4e1a48ae5f6b5b045d888fc85ac5f Mon Sep 17 00:00:00 2001 From: ZQ Date: Fri, 17 Apr 2026 14:55:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/derisk-core/src/derisk/agent/util/llm/llm_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/derisk-core/src/derisk/agent/util/llm/llm_client.py b/packages/derisk-core/src/derisk/agent/util/llm/llm_client.py index 744dabfe..ad9f2ea4 100644 --- a/packages/derisk-core/src/derisk/agent/util/llm/llm_client.py +++ b/packages/derisk-core/src/derisk/agent/util/llm/llm_client.py @@ -328,6 +328,7 @@ async def create(self, **config): # Use config from parameter or self._llm_config llm_model = extra_kwargs.get("llm_model") + logger.info(f"==用户选择 model: {llm_model}") if self._llm_config: llm_model = self._llm_config.model