mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: uploading in chat box issue. (#6547)
### What problem does this PR solve? #6228 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -106,7 +106,8 @@ from .cv_model import (
|
||||
TogetherAICV,
|
||||
YiCV,
|
||||
HunyuanCV,
|
||||
AnthropicCV
|
||||
AnthropicCV,
|
||||
SILICONFLOWCV
|
||||
)
|
||||
|
||||
from .rerank_model import (
|
||||
@ -200,6 +201,7 @@ CvModel = {
|
||||
"01.AI": YiCV,
|
||||
"Tencent Hunyuan": HunyuanCV,
|
||||
"Anthropic": AnthropicCV,
|
||||
"SILICONFLOW": SILICONFLOWCV,
|
||||
}
|
||||
|
||||
ChatModel = {
|
||||
|
||||
@ -833,6 +833,13 @@ class YiCV(GptV4):
|
||||
super().__init__(key, model_name, lang, base_url)
|
||||
|
||||
|
||||
class SILICONFLOWCV(GptV4):
|
||||
def __init__(self, key, model_name, lang="Chinese", base_url="https://api.siliconflow.cn/v1",):
|
||||
if not base_url:
|
||||
base_url = "https://api.siliconflow.cn/v1"
|
||||
super().__init__(key, model_name, lang, base_url)
|
||||
|
||||
|
||||
class HunyuanCV(Base):
|
||||
def __init__(self, key, model_name, lang="Chinese", base_url=None):
|
||||
from tencentcloud.common import credential
|
||||
|
||||
Reference in New Issue
Block a user