Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/renderer/components/icons/ProviderIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ export default function ProviderIcon(props: { className?: string; size?: number;
)}
{provider === ModelProviderEnum.MistralAI && (
<>
<path d="M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z"/>
<path d="M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z" />
</>
)}
{provider === ModelProviderEnum.XAI && (
<>
<path d="M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"></path>
</>
)}
{provider === ModelProviderEnum.N1N && (
<path d="M19.143 3.429v17.142h-3.429l-7.428-11.428v11.428h-3.429V3.43h3.429l7.428 11.428V3.43h3.429z" />
)}
</svg>
)
}
1 change: 1 addition & 0 deletions src/renderer/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@
"Show/Hide the Search Dialog": "Show/Hide the Search Dialog",
"Showing {{loaded}} of {{total}} chunks": "Showing {{loaded}} of {{total}} chunks",
"Showing first {{count}} chunks": "Showing first {{count}} chunks",
"n1n.ai": "n1n.ai",
"SiliconFlow": "SiliconFlow",
"Smartest AI-Powered Services for Rapid Access": "Smartest AI-Powered Services for Rapid Access",
"Spam or advertising": "Spam or advertising",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/i18n/locales/zh-Hans/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@
"Show/Hide the Search Dialog": "显示/隐藏搜索弹窗",
"Showing {{loaded}} of {{total}} chunks": "显示 {{loaded}} / {{total}} 分块",
"Showing first {{count}} chunks": "显示前 {{count}} 分块",
"n1n.ai": "n1n.ai",
"SiliconFlow": "硅基流动",
"Smartest AI-Powered Services for Rapid Access": "最智能的 AI 服务,快速访问",
"Sorry, the current model {{model}} API itself does not support image understanding. If you need to send images, please switch to another model or use the recommended <OpenMorePlanButton>Chatbox AI Models</OpenMorePlanButton>.": "抱歉,当前模型 {{model}} API 本身不支持图片理解。如果您需要发送图片,请切换到其他模型或使用推荐的 <OpenMorePlanButton>Chatbox AI Models</OpenMorePlanButton>。",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/packages/model-setting-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function getModelSettingUtil(
[ModelProviderEnum.LMStudio]: LMStudioSettingUtil,
[ModelProviderEnum.Perplexity]: PerplexitySettingUtil,
[ModelProviderEnum.XAI]: XAISettingUtil,
[ModelProviderEnum.N1N]: OpenAISettingUtil,
[ModelProviderEnum.Custom]: CustomModelSettingUtil,
}

Expand Down
43 changes: 43 additions & 0 deletions src/shared/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,49 @@ export const SystemProviders: ProviderBaseInfo[] = [
name: 'Chatbox AI',
type: ModelProviderType.ChatboxAI,
},
{
id: ModelProviderEnum.N1N,
name: 'n1n.ai',
type: ModelProviderType.OpenAI,
urls: {
website: 'https://n1n.ai',
},
defaultSettings: {
apiHost: 'https://api.n1n.ai/v1',
models: [
{
modelId: 'gpt-4o_repeat_n1n',
nickname: 'GPT-4o',
capabilities: ['vision', 'tool_use'],
contextWindow: 128_000,
},
{
modelId: 'claude-3-5-sonnet-20240620_repeat_n1n',
nickname: 'Claude 3.5 Sonnet',
capabilities: ['vision', 'tool_use'],
contextWindow: 200_000,
},
{
modelId: 'gemini-1.5-pro-latest_repeat_n1n',
nickname: 'Gemini 1.5 Pro',
capabilities: ['vision', 'tool_use'],
contextWindow: 1_000_000,
},
{
modelId: 'deepseek-chat_repeat_n1n',
nickname: 'DeepSeek V3',
capabilities: ['tool_use'],
contextWindow: 64_000,
},
{
modelId: 'deepseek-reasoner_repeat_n1n',
nickname: 'DeepSeek R1',
capabilities: ['reasoning', 'tool_use'],
contextWindow: 64_000,
},
],
},
},
{
id: ModelProviderEnum.OpenAI,
name: 'OpenAI',
Expand Down
1 change: 1 addition & 0 deletions src/shared/types/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export enum ModelProviderEnum {
Perplexity = 'perplexity',
XAI = 'xAI',
OpenRouter = 'openrouter',
N1N = 'n1n',
Custom = 'custom',
}

Expand Down