diff --git a/configs/derisk-proxy-aliyun.toml b/configs/derisk-proxy-aliyun.toml index e186c6ca..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" @@ -51,42 +51,35 @@ max_new_tokens = 4096 name = "qwen-vl-max" temperature = 0.7 max_new_tokens = 4096 -is_multimodal = true # 多模态模型,支持图片输入 [[agent.llm.provider.model]] name = "glm-5" temperature = 0.7 max_new_tokens = 4096 -is_multimodal = true # 多模态模型,支持图片输入 [[serves]] 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 configuration deprecated - using unified FileStorageClient from serves.backends -# 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" - -# Disable default skill sync from GitHub (network can be slow) -[derisk.serve.skill] -enable_default_skill_sync = false +#[[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" 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