mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
add support for Upstage (#1902)
### What problem does this PR solve? #1853 add support for Upstage ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
This commit is contained in:
parent
94cb66ba80
commit
e9e39d57ce
@ -2601,6 +2601,38 @@
|
||||
"model_type": "embedding"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Upstage",
|
||||
"logo": "",
|
||||
"tags": "LLM,TEXT EMBEDDING",
|
||||
"status": "1",
|
||||
"llm": [
|
||||
{
|
||||
"llm_name": "solar-1-mini-chat",
|
||||
"tags": "LLM,CHAT,32k",
|
||||
"max_tokens": 32768,
|
||||
"model_type": "chat"
|
||||
},
|
||||
{
|
||||
"llm_name": "solar-1-mini-chat-ja",
|
||||
"tags": "LLM,CHAT,32k",
|
||||
"max_tokens": 32768,
|
||||
"model_type": "chat"
|
||||
},
|
||||
{
|
||||
"llm_name": "solar-embedding-1-large-query",
|
||||
"tags": "TEXT EMBEDDING",
|
||||
"max_tokens": 4000,
|
||||
"model_type": "embedding"
|
||||
},
|
||||
{
|
||||
"llm_name": "solar-embedding-1-large-passage",
|
||||
"tags": "TEXT EMBEDDING",
|
||||
"max_tokens": 4000,
|
||||
"model_type": "embedding"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ EmbeddingModel = {
|
||||
"cohere": CoHereEmbed,
|
||||
"TogetherAI": TogetherAIEmbed,
|
||||
"PerfXCloud": PerfXCloudEmbed,
|
||||
"Upstage": UpstageEmbed
|
||||
}
|
||||
|
||||
|
||||
@ -89,7 +90,8 @@ ChatModel = {
|
||||
"cohere": CoHereChat,
|
||||
"LeptonAI": LeptonAIChat,
|
||||
"TogetherAI": TogetherAIChat,
|
||||
"PerfXCloud": PerfXCloudChat
|
||||
"PerfXCloud": PerfXCloudChat,
|
||||
"Upstage":UpstageChat
|
||||
}
|
||||
|
||||
|
||||
|
@ -1002,3 +1002,10 @@ class PerfXCloudChat(Base):
|
||||
if not base_url:
|
||||
base_url = "https://cloud.perfxlab.cn/v1"
|
||||
super().__init__(key, model_name, base_url)
|
||||
|
||||
|
||||
class UpstageChat(Base):
|
||||
def __init__(self, key, model_name, base_url="https://api.upstage.ai/v1/solar"):
|
||||
if not base_url:
|
||||
base_url = "https://api.upstage.ai/v1/solar"
|
||||
super().__init__(key, model_name, base_url)
|
||||
|
@ -568,3 +568,9 @@ class PerfXCloudEmbed(OpenAIEmbed):
|
||||
base_url = "https://cloud.perfxlab.cn/v1"
|
||||
super().__init__(key, model_name, base_url)
|
||||
|
||||
|
||||
class UpstageEmbed(OpenAIEmbed):
|
||||
def __init__(self, key, model_name, base_url="https://api.upstage.ai/v1/solar"):
|
||||
if not base_url:
|
||||
base_url = "https://api.upstage.ai/v1/solar"
|
||||
super().__init__(key, model_name, base_url)
|
||||
|
21
web/src/assets/svg/llm/upstage.svg
Normal file
21
web/src/assets/svg/llm/upstage.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 21 KiB |
@ -26,7 +26,8 @@ export const IconMap = {
|
||||
cohere: 'cohere',
|
||||
Lepton: 'lepton',
|
||||
TogetherAI:'together-ai',
|
||||
PerfXCould: 'perfx-could'
|
||||
PerfXCould: 'perfx-could',
|
||||
Upstage: 'upstage'
|
||||
};
|
||||
|
||||
export const BedrockRegionList = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user