Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 22 additions & 29 deletions configs/derisk-proxy-aliyun.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading