mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
Merge fcdab2ad08 into fd6986076a
This commit is contained in:
commit
829879a836
BIN
src/renderer/src/assets/images/providers/memorylake.png
Normal file
BIN
src/renderer/src/assets/images/providers/memorylake.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@ -1791,5 +1791,22 @@ export const SYSTEM_MODELS: Record<SystemProviderId | 'defaultModel', Model[]> =
|
|||||||
provider: 'cerebras',
|
provider: 'cerebras',
|
||||||
group: 'qwen'
|
group: 'qwen'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
memorylake: [
|
||||||
|
{ id: 'gpt-5', name: 'GPT-5', provider: 'memorylake', group: 'GPT 5' },
|
||||||
|
{ id: 'gpt-5-mini', name: 'GPT-5 Mini', provider: 'memorylake', group: 'GPT 5' },
|
||||||
|
{ id: 'gpt-4o', name: 'GPT 4o', provider: 'memorylake', group: 'GPT 4o' },
|
||||||
|
{ id: 'gpt-4o-mini', name: 'GPT 4o Mini', provider: 'memorylake', group: 'GPT 4o' },
|
||||||
|
{ id: 'gemini-2.5-flash', name: 'Gemini 2.5 Flash', provider: 'memorylake', group: 'Gemini 2.5' },
|
||||||
|
{ id: 'gemini-2.5-pro', name: 'Gemini 2.5 Pro', provider: 'memorylake', group: 'Gemini 2.5' },
|
||||||
|
{ id: 'claude-haiku-4-5-20251001', name: 'Claude Haiku 4.5', provider: 'memorylake', group: 'Claude 4.5' },
|
||||||
|
{ id: 'claude-sonnet-4-5-20250929', name: 'Claude Sonnet 4.5', provider: 'memorylake', group: 'Claude 4.5' },
|
||||||
|
{ id: 'glm-4.5', name: 'GLM 4.5', provider: 'memorylake', group: 'GLM 4.5' },
|
||||||
|
{ id: 'glm-4.5-air', name: 'GLM 4.5 Air', provider: 'memorylake', group: 'GLM 4.5' },
|
||||||
|
{ id: 'grok-4', name: 'Grok 4', provider: 'memorylake', group: 'Grok' },
|
||||||
|
{ id: 'grok-4-fast-non-reasoning', name: 'Grok 4 Fast', provider: 'memorylake', group: 'Grok' },
|
||||||
|
{ id: 'qwen-flash', name: 'Qwen Flash', provider: 'memorylake', group: 'Qwen' },
|
||||||
|
{ id: 'qwen-max', name: 'Qwen Max', provider: 'memorylake', group: 'Qwen' },
|
||||||
|
{ id: 'qwen-plus', name: 'Qwen Plus', provider: 'memorylake', group: 'Qwen' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,7 @@ import JinaProviderLogo from '@renderer/assets/images/providers/jina.png'
|
|||||||
import LanyunProviderLogo from '@renderer/assets/images/providers/lanyun.png'
|
import LanyunProviderLogo from '@renderer/assets/images/providers/lanyun.png'
|
||||||
import LMStudioProviderLogo from '@renderer/assets/images/providers/lmstudio.png'
|
import LMStudioProviderLogo from '@renderer/assets/images/providers/lmstudio.png'
|
||||||
import LongCatProviderLogo from '@renderer/assets/images/providers/longcat.png'
|
import LongCatProviderLogo from '@renderer/assets/images/providers/longcat.png'
|
||||||
|
import MemoryLakeProviderLogo from '@renderer/assets/images/providers/memorylake.png'
|
||||||
import MinimaxProviderLogo from '@renderer/assets/images/providers/minimax.png'
|
import MinimaxProviderLogo from '@renderer/assets/images/providers/minimax.png'
|
||||||
import MistralProviderLogo from '@renderer/assets/images/providers/mistral.png'
|
import MistralProviderLogo from '@renderer/assets/images/providers/mistral.png'
|
||||||
import ModelScopeProviderLogo from '@renderer/assets/images/providers/modelscope.png'
|
import ModelScopeProviderLogo from '@renderer/assets/images/providers/modelscope.png'
|
||||||
@ -695,6 +696,16 @@ export const SYSTEM_PROVIDERS_CONFIG: Record<SystemProviderId, SystemProvider> =
|
|||||||
models: SYSTEM_MODELS.cerebras,
|
models: SYSTEM_MODELS.cerebras,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
|
},
|
||||||
|
memorylake: {
|
||||||
|
id: 'memorylake',
|
||||||
|
name: 'MemoryLake',
|
||||||
|
type: 'openai',
|
||||||
|
apiKey: '',
|
||||||
|
apiHost: 'https://memorylake.data.cloud',
|
||||||
|
models: SYSTEM_MODELS.memorylake,
|
||||||
|
isSystem: true,
|
||||||
|
enabled: false
|
||||||
}
|
}
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
@ -763,7 +774,8 @@ export const PROVIDER_LOGO_MAP: AtLeast<SystemProviderId, string> = {
|
|||||||
huggingface: HuggingfaceProviderLogo,
|
huggingface: HuggingfaceProviderLogo,
|
||||||
sophnet: SophnetProviderLogo,
|
sophnet: SophnetProviderLogo,
|
||||||
gateway: AIGatewayProviderLogo,
|
gateway: AIGatewayProviderLogo,
|
||||||
cerebras: CerebrasProviderLogo
|
cerebras: CerebrasProviderLogo,
|
||||||
|
memorylake: MemoryLakeProviderLogo
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export function getProviderLogo(providerId: string) {
|
export function getProviderLogo(providerId: string) {
|
||||||
@ -1434,5 +1446,15 @@ export const PROVIDER_URLS: Record<SystemProviderId, ProviderUrls> = {
|
|||||||
docs: 'https://inference-docs.cerebras.ai/introduction',
|
docs: 'https://inference-docs.cerebras.ai/introduction',
|
||||||
models: 'https://inference-docs.cerebras.ai/models/overview'
|
models: 'https://inference-docs.cerebras.ai/models/overview'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
memorylake: {
|
||||||
|
api: {
|
||||||
|
url: 'https://memorylake.data.cloud'
|
||||||
|
},
|
||||||
|
websites: {
|
||||||
|
official: 'https://memorylake.ai',
|
||||||
|
apiKey: 'https://memorylake.data.cloud/panel/token',
|
||||||
|
docs: 'https://docs.memorylake.ai'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,7 +88,8 @@ const providerKeyMap = {
|
|||||||
huggingface: 'provider.huggingface',
|
huggingface: 'provider.huggingface',
|
||||||
sophnet: 'provider.sophnet',
|
sophnet: 'provider.sophnet',
|
||||||
gateway: 'provider.ai-gateway',
|
gateway: 'provider.ai-gateway',
|
||||||
cerebras: 'provider.cerebras'
|
cerebras: 'provider.cerebras',
|
||||||
|
memorylake: 'provider.memorylake'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "LANYUN",
|
"lanyun": "LANYUN",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "LongCat AI",
|
"longcat": "LongCat AI",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope",
|
"modelscope": "ModelScope",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "蓝耘科技",
|
"lanyun": "蓝耘科技",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "龙猫",
|
"longcat": "龙猫",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope 魔搭",
|
"modelscope": "ModelScope 魔搭",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "藍耘",
|
"lanyun": "藍耘",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "龍貓",
|
"longcat": "龍貓",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope 魔搭",
|
"modelscope": "ModelScope 魔搭",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "Lanyun Technologie",
|
"lanyun": "Lanyun Technologie",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "Meißner Riesenhamster",
|
"longcat": "Meißner Riesenhamster",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope",
|
"modelscope": "ModelScope",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "Λανιούν Τεχνολογία",
|
"lanyun": "Λανιούν Τεχνολογία",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "Τσίρο",
|
"longcat": "Τσίρο",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope Magpie",
|
"modelscope": "ModelScope Magpie",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "Tecnología Lanyun",
|
"lanyun": "Tecnología Lanyun",
|
||||||
"lmstudio": "Estudio LM",
|
"lmstudio": "Estudio LM",
|
||||||
"longcat": "Totoro",
|
"longcat": "Totoro",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "Minimax",
|
"minimax": "Minimax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope Módulo",
|
"modelscope": "ModelScope Módulo",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "Technologie Lan Yun",
|
"lanyun": "Technologie Lan Yun",
|
||||||
"lmstudio": "Studio LM",
|
"lmstudio": "Studio LM",
|
||||||
"longcat": "Mon voisin Totoro",
|
"longcat": "Mon voisin Totoro",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope MoDa",
|
"modelscope": "ModelScope MoDa",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "LANYUN",
|
"lanyun": "LANYUN",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "トトロ",
|
"longcat": "トトロ",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope",
|
"modelscope": "ModelScope",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "Lanyun Tecnologia",
|
"lanyun": "Lanyun Tecnologia",
|
||||||
"lmstudio": "Estúdio LM",
|
"lmstudio": "Estúdio LM",
|
||||||
"longcat": "Totoro",
|
"longcat": "Totoro",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "Minimax",
|
"minimax": "Minimax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope MôDá",
|
"modelscope": "ModelScope MôDá",
|
||||||
|
|||||||
@ -2643,6 +2643,7 @@
|
|||||||
"lanyun": "LANYUN",
|
"lanyun": "LANYUN",
|
||||||
"lmstudio": "LM Studio",
|
"lmstudio": "LM Studio",
|
||||||
"longcat": "Тоторо",
|
"longcat": "Тоторо",
|
||||||
|
"memorylake": "MemoryLake",
|
||||||
"minimax": "MiniMax",
|
"minimax": "MiniMax",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"modelscope": "ModelScope",
|
"modelscope": "ModelScope",
|
||||||
|
|||||||
@ -189,7 +189,8 @@ export const SystemProviderIdSchema = z.enum([
|
|||||||
'huggingface',
|
'huggingface',
|
||||||
'sophnet',
|
'sophnet',
|
||||||
'gateway',
|
'gateway',
|
||||||
'cerebras'
|
'cerebras',
|
||||||
|
'memorylake'
|
||||||
])
|
])
|
||||||
|
|
||||||
export type SystemProviderId = z.infer<typeof SystemProviderIdSchema>
|
export type SystemProviderId = z.infer<typeof SystemProviderIdSchema>
|
||||||
@ -258,7 +259,8 @@ export const SystemProviderIds = {
|
|||||||
longcat: 'longcat',
|
longcat: 'longcat',
|
||||||
huggingface: 'huggingface',
|
huggingface: 'huggingface',
|
||||||
gateway: 'gateway',
|
gateway: 'gateway',
|
||||||
cerebras: 'cerebras'
|
cerebras: 'cerebras',
|
||||||
|
memorylake: 'memorylake'
|
||||||
} as const satisfies Record<SystemProviderId, SystemProviderId>
|
} as const satisfies Record<SystemProviderId, SystemProviderId>
|
||||||
|
|
||||||
type SystemProviderIdTypeMap = typeof SystemProviderIds
|
type SystemProviderIdTypeMap = typeof SystemProviderIds
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user