

组件代码:
import requests
from pydantic.v1 import SecretStr
from typing_extensions import override
from langflow.base.models.model import LCModelComponent
from langflow.field_typing import LanguageModel
from langflow.field_typing.range_spec import RangeSpec
from langflow.inputs import BoolInput, DictInput, DropdownInput, IntInput, SecretStrInput, SliderInput, StrInput
# 定义 SiliconFlow 提供的模型列表
SILICONFLOW_MODELS = [
"Pro/deepseek-ai/DeepSeek-R1",
"Pro/deepseek-ai/DeepSeek-V3",
"deepseek-ai/DeepSeek-R1",
"deepseek-ai/DeepSeek-V3",
"deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
"deepseek-ai/DeepSeek-R1-Distill-Llama-8B",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
"SeedLLM/Seed-Rice-7B",
"Qwen/QVQ-72B-Preview",
"deepseek-ai/DeepSeek-V2.5",
"meta-llama/Llama-3.3-70B-Instruct",
"Qwen/QwQ-32B-Preview",
"Qwen/Qwen2.5-Coder-32B-Instruct",
"Qwen/Qwen2-VL-72B-Instruct",
"OpenGVLab/InternVL2-26B",
"Qwen/Qwen2.5-72B-Instruct-128K",
"deepseek-ai/deepseek-vl2",
"Qwen/Qwen2.5-72B-Instruct",
"Qwen/Qwen2.5-32B-Instruct",
"Qwen/Qwen2.5-14B-Instruct",
"Qwen/Qwen2.5-7B-Instruct",
"Qwen/Qwen2.5-Coder-7B-Instruct",
"Qwen/Qwen2-VL-7B-Instruct",
"OpenGVLab/InternVL2-8B",
"Qwen/Qwen2-7B-Instruct",
"Qwen/Qwen2-1.5B-Instruct",
"THUDM/glm-4-9b-chat",
"THUDM/chatglm3-6b",
"01-ai/Yi-1.5-9B-Chat-16K",
"01-ai/Yi-1.5-6B-Chat",
"01-ai/Yi-1.5-34B-Chat-16K",
"google/gemma-2-27b-it",
"google/gemma-2-9b-it"

最低0.47元/天 解锁文章
1844

被折叠的 条评论
为什么被折叠?



