feat: add Ragcon provider (#13425)

### What problem does this PR solve?

This PR aims to extend the list of possible providers. Adds new Provider
"RAGcon" within the Ollama Modal. It provides all model types except OCR
via Openai-compatible endpoints.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Jakob <16180662+hauberj@users.noreply.github.com>
This commit is contained in:
Jonah Hartmann
2026-03-06 02:37:27 +01:00
committed by GitHub
parent c35b210c3a
commit 6023eb27ac
12 changed files with 233 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="75" height="75" version="1.1" viewBox="0 0 75 75">
<defs>
<style>
.cls-1 {
fill: #63c3d1;
}
.cls-2 {
fill: #194870;
}
</style>
</defs>
<!-- Generator: Adobe Illustrator 28.7.7, SVG Export Plug-In . SVG Version: 1.2.0 Build 194) -->
<g>
<g id="Ebene_1">
<g>
<path class="cls-2" d="M8.889.148C4.043.148.115,4.078.115,8.923s3.928,8.774,8.774,8.774,8.774-3.929,8.774-8.774S13.735.148,8.889.148ZM8.889,13.179c-2.351,0-4.256-1.905-4.256-4.256s1.905-4.256,4.256-4.256,4.256,1.905,4.256,4.256-1.905,4.256-4.256,4.256Z"/>
<path class="cls-2" d="M25.866,33.473c-4.846,0-8.774,3.93-8.774,8.775s3.928,8.774,8.774,8.774,8.774-3.929,8.774-8.774-3.928-8.775-8.774-8.775ZM25.866,46.503c-2.351,0-4.256-1.905-4.256-4.256s1.905-4.256,4.256-4.256,4.256,1.905,4.256,4.256-1.905,4.256-4.256,4.256Z"/>
</g>
<path class="cls-1" d="M73.319,63.835l-10.95-21.456c4.362-4.335,7.063-10.261,7.063-16.796,0-13.242-11.058-24.015-24.651-24.015l-31.11.003c2.402,1.566,3.992,4.271,3.992,7.352s-1.591,5.786-3.994,7.351l31.112-.003c5.485,0,9.947,4.177,9.947,9.312s-4.462,9.311-9.948,9.311l-13.302.002c-.258,0-.513.014-.764.04,2.365,1.572,3.926,4.259,3.926,7.311s-1.561,5.74-3.927,7.311c.253.026.509.04.768.04h13.301c1.555,0,3.07-.159,4.546-.428l10.895,21.347c1.3,2.547,3.879,4.012,6.554,4.012,1.124,0,2.265-.259,3.336-.806,3.616-1.845,5.051-6.272,3.206-9.889Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -85,6 +85,7 @@ const svgIcons = [
LLMFactory.N1n,
// LLMFactory.DeerAPI,
LLMFactory.Avian,
LLMFactory.RAGcon,
];
export const LlmIcon = ({

View File

@@ -64,6 +64,7 @@ export enum LLMFactory {
PaddleOCR = 'PaddleOCR',
N1n = 'n1n',
Avian = 'Avian',
RAGcon = 'RAGcon',
}
// Please lowercase the file name
@@ -133,6 +134,7 @@ export const IconMap = {
[LLMFactory.PaddleOCR]: 'paddleocr',
[LLMFactory.N1n]: 'n1n',
[LLMFactory.Avian]: 'avian',
[LLMFactory.RAGcon]: 'ragcon',
};
export const APIMapUrl = {

View File

@@ -39,6 +39,7 @@ export const LocalLlmFactories = [
LLMFactory.GPUStack,
LLMFactory.ModelScope,
LLMFactory.VLLM,
LLMFactory.RAGcon,
];
export enum TenantRole {

View File

@@ -27,6 +27,7 @@ const llmFactoryToUrlMap: Partial<Record<LLMFactory, string>> = {
[LLMFactory.LMStudio]: 'https://lmstudio.ai/docs/basics',
[LLMFactory.OpenAiAPICompatible]:
'https://platform.openai.com/docs/models/gpt-4',
[LLMFactory.RAGcon]: 'https://www.ragcon.ai/erste-schritte-mit-ragflow/',
[LLMFactory.TogetherAI]: 'https://docs.together.ai/docs/deployment-options',
[LLMFactory.Replicate]: 'https://replicate.com/docs/topics/deployments',
[LLMFactory.OpenRouter]: 'https://openrouter.ai/docs',
@@ -81,6 +82,14 @@ const OllamaModal = ({
'speech2text',
'tts',
]),
[LLMFactory.RAGcon]: buildModelTypeOptions([
'chat',
'embedding',
'rerank',
'image2text',
'speech2text',
'tts',
]),
[LLMFactory.ModelScope]: buildModelTypeOptions(['chat']),
[LLMFactory.GPUStack]: buildModelTypeOptions([
'chat',