mirror of
https://github.com/agentuniverse-ai/agentUniverse.git
synced 2026-02-09 01:59:19 +08:00
Merge pull request #384 from agentuniverse-ai/master_cs_doc
docs: tweaking llm channel docs.
This commit is contained in:
@@ -74,7 +74,7 @@ def as_langchain(self) -> BaseLanguageModel:
|
||||
In agentUniverse, the Model Channel (LLMChannel) class inherits from ComponentBase and includes the following configurable parameters:
|
||||
|
||||
1. `channel_name`: (Required) Corresponds to the aU channel component instance name
|
||||
2. `channel_api_key`: (Required) Corresponds to the specific channel's key, e.g., dashscope key for Baichuan platform; qianfan key for Qianfan platform
|
||||
2. `channel_api_key`: (Required) Corresponds to the specific channel's key, e.g., DASHSCOPE_API_KEY for Aliyun Dashscope platform; QIANFAN_API_KEY for Baidu Qianfan platform
|
||||
3. `channel_api_base`: (Required) Corresponds to the specific channel's endpoint
|
||||
4. `channel_organization`: (Optional) Corresponds to the specific channel's organization
|
||||
5. `channel_proxy`: (Optional) Corresponds to the specific channel's proxy
|
||||
@@ -111,7 +111,7 @@ meta_class: 'agentuniverse.llm.default.deep_seek_openai_style_llm.DefaultDeepSee
|
||||
|
||||
```yaml
|
||||
channel_name: 'deepseek-r1-official'
|
||||
channel_api_key: '${DEEPSEEK_OFFICIAL_CHANNEL_API_KEY}' # deepseek-r1 official website key
|
||||
channel_api_key: '${DEEPSEEK_API_KEY}' # deepseek-r1 official website key
|
||||
channel_api_base: 'https://api.deepseek.com/v1' # deepseek-r1 official website url
|
||||
channel_model_name: 'deepseek-reasoner' # deepseek-r1 official website model name
|
||||
model_support_stream: True # Whether deepseek-r1 official channel supports streaming
|
||||
@@ -142,7 +142,7 @@ meta_class: 'agentuniverse.llm.default.deep_seek_openai_style_llm.DefaultDeepSee
|
||||
|
||||
```yaml
|
||||
channel_name: 'deepseek-r1-dashscope'
|
||||
channel_api_key: '${DASHSCOPE_CHANNEL_API_KEY}' # Alibaba Cloud Baichuan platform key
|
||||
channel_api_key: '${DASHSCOPE_API_KEY}' # Alibaba Cloud Baichuan platform key
|
||||
channel_api_base: 'https://dashscope.aliyuncs.com/compatible-mode/v1' # Alibaba Cloud Baichuan platform url
|
||||
channel_model_name: deepseek-r1 # Alibaba Cloud Baichuan platform model name
|
||||
model_support_stream: True # Whether Alibaba Cloud Baichuan platform model supports streaming
|
||||
|
||||
@@ -74,7 +74,7 @@ def as_langchain(self) -> BaseLanguageModel:
|
||||
在agentUniverse中,模型通道(LLMChannel)类继承自ComponentBase,包含以下可配置参数:
|
||||
|
||||
1. `channel_name`:(必填)对应aU的通道组件实例名称
|
||||
2. `channel_api_key`:(必填)对应特定通道的密钥,比如百炼平台对应dashscope key;千帆平台对应qianfan key
|
||||
2. `channel_api_key`:(必填)对应特定通道的密钥,比如百炼平台对应DASHSCOPE_API_KEY;千帆平台对应QIANFAN_API_KEY
|
||||
3. `channel_api_base`:(必填)对应特定通道的endpoint
|
||||
4. `channel_organization`:(非必填)对应特定通道的organization
|
||||
5. `channel_proxy`:(非必填)对应特定通道的proxy
|
||||
@@ -111,7 +111,7 @@ meta_class: 'agentuniverse.llm.default.deep_seek_openai_style_llm.DefaultDeepSee
|
||||
|
||||
```yaml
|
||||
channel_name: 'deepseek-r1-official'
|
||||
channel_api_key: '${DEEPSEEK_OFFICIAL_CHANNEL_API_KEY}' # deepseek-r1官网的密钥
|
||||
channel_api_key: '${DEEPSEEK_API_KEY}' # deepseek-r1官网的密钥
|
||||
channel_api_base: 'https://api.deepseek.com/v1' # deepseek-r1官网的url
|
||||
channel_model_name: 'deepseek-reasoner' # deepseek-r1官网的模型名称
|
||||
model_support_stream: True # deepseek-r1官网通道是否支持流式
|
||||
@@ -142,7 +142,7 @@ meta_class: 'agentuniverse.llm.default.deep_seek_openai_style_llm.DefaultDeepSee
|
||||
|
||||
```yaml
|
||||
channel_name: 'deepseek-r1-dashscope'
|
||||
channel_api_key: '${DASHSCOPE_CHANNEL_API_KEY}' # 阿里云百炼平台的密钥
|
||||
channel_api_key: '${DASHSCOPE_API_KEY}' # 阿里云百炼平台的密钥
|
||||
channel_api_base: 'https://dashscope.aliyuncs.com/compatible-mode/v1' # 阿里云百炼平台的url
|
||||
channel_model_name: deepseek-r1 # 阿里云百炼平台的模型名称
|
||||
model_support_stream: True # 阿里云百炼平台模型是否支持流式
|
||||
|
||||
Reference in New Issue
Block a user