Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

feat(models): add Radeon Cloud provider for GO (#21163)

Sbaaoui Idriss2bbb984b5fe4
diff --git a/conf/models/radeon_cloud.json b/conf/models/radeon_cloud.json
new file mode 100644
index 0000000000..5d3893faf2
--- /dev/null
+++ b/conf/models/radeon_cloud.json
@@ -0,0 +1,13 @@
+{
+ "name": "Radeon Cloud",
+ "rank": 50,
+ "url": {
+ "default": "https://developer.amd.com.cn/radeon/api/v1"
+ },
+ "url_suffix": {
+ "chat": "chat/completions",
+ "models": "models"
+ },
+ "class": "radeon-cloud",
+ "models": []
+}
diff --git a/internal/entity/models/factory.go b/internal/entity/models/factory.go
index 064eb9d3ac..6cc75a1603 100644
--- a/internal/entity/models/factory.go
+++ b/internal/entity/models/factory.go
@@ -184,6 +184,8 @@ func (f *ModelFactory) CreateModelDriver(providerName string, baseURL map[string
return NewGreenPTModel(baseURL, urlSuffix), nil
case "synthorai":
return NewSynthoraiModel(baseURL, urlSuffix), nil
+ case "radeon cloud":
+ return NewRadeonCloudModel(baseURL, urlSuffix), nil
case "anonrouter":
return NewAnonRouterModel(baseURL, urlSuffix), nil
case "api-route":
diff --git a/internal/entity/models/radeon_cloud.go b/internal/entity/models/radeon_cloud.go
new file mode 100644
index 0000000000..ee9789e0ea
--- /dev/null
+++ b/internal/entity/models/radeon_cloud.go
@@ -0,0 +1,39 @@
+//
+// Copyright 2026 The InfiniFlow Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+package models
+
+// RadeonCloudModel uses Radeon Cloud's OpenAI-compatible API.
+type RadeonCloudModel struct {
+ *OpenAIAPICompatibleModel
+}
+
+// NewRadeonCloudModel creates a Radeon Cloud model driver.
+func NewRadeonCloudModel(baseURL map[string]string, urlSuffix URLSuffix) *RadeonCloudModel {
+ model := NewOpenAIAPICompatibleModel(baseURL, urlSuffix)
+ model.baseModel.AllowEmptyAPIKey = false
+ return &RadeonCloudModel{OpenAIAPICompatibleModel: model}
+}
+
+// Name returns the provider name.
+func (m *RadeonCloudModel) Name() string {
+ return "Radeon Cloud"
+}
+
+// NewInstance binds a Radeon Cloud driver to the supplied base URL.
+func (m *RadeonCloudModel) NewInstance(baseURL map[string]string) ModelDriver {
+ return NewRadeonCloudModel(baseURL, m.baseModel.URLSuffix)
+}
diff --git a/web/public/iconfont.js b/web/public/iconfont.js
index f8deb7dc4a..7eb59e2e6d 100644
--- a/web/public/iconfont.js
+++ b/web/public/iconfont.js
@@ -2,6 +2,7 @@
((window._iconfont_svg_string_4909832 =
'<svg>' +
`
+ <symbol id="icon-radeon-cloud" viewBox="0 0 1530 1530"><path d="M431.35 416.39L15.28 0L1530 0L1530 1515.66L1113.92 1099.32L1113.92 416.39L431.35 416.39ZM430.87 499.83L2.49 928.44L2.49 1528.41L602.04 1528.41L1030.39 1099.81L430.87 1099.81L430.87 499.83Z" /></symbol>
<symbol id="icon-html" viewBox="0 0 1024 1024"><path d="M533.367467 0h52.565333v107.178667c99.054933 0.682667 198.212267-1.3312 297.198933 0.580266 21.2992-2.594133 37.9904 18.705067 35.84 46.08 1.604267 222.4128-0.341333 444.962133 0.9216 667.511467-0.9216 24.064 1.809067 50.722133-8.874666 72.021333-13.550933 12.629333-31.163733 10.9568-47.0016 11.946667-92.672-0.6144-185.344-0.443733-278.084267-0.443733V1024h-57.685333c-141.243733-33.109333-282.760533-63.317333-424.072534-95.232-0.1024-277.8112-0.1024-555.554133 0-833.262933C247.1936 63.6928 390.178133 31.3344 533.367467 0z" fill="#64A247" ></path><path d="M148.206933 564.804267v-148.241067H168.96v58.368h40.721067v-58.368h20.7872v148.206933h-20.821334v-64.785066H168.96v64.8192h-20.753067z m126.907734 0v-123.153067h-30.549334v-25.088H326.314667v25.088h-30.446934v123.153067H275.114667z m64.341333 0v-148.241067h31.061333l18.705067 101.102933 18.432-101.102933h31.163733v148.206933h-19.285333v-116.6336l-20.445867 116.6336h-19.968L358.741333 448.170667v116.6336h-19.285333z m120.558933 0v-147.0464h20.7872v122.0608h51.643734v24.951466h-72.430934z m115.712-422.570667v739.5328h300.066134V142.2336h-300.100267z m67.515734 431.069867l-43.6224-46.592a10.376533 10.376533 0 0 1-2.184534-6.792534 13.312 13.312 0 0 1 2.184534-7.748266l43.6224-46.557867c1.8432-2.4576 4.471467-3.413333 6.9632-2.491733 2.491733 0.887467 4.437333 3.4816 5.12 6.792533 0.648533 3.310933-0.068267 6.826667-1.877334 9.250133l-37.853866 40.823467 37.853866 40.7552c2.901333 3.857067 2.901333 9.693867 0 12.629333a6.3488 6.3488 0 0 1-5.12 2.901334 6.3488 6.3488 0 0 1-5.12-2.935467l0.034134-0.034133z m16.042666 68.846933c-4.369067-0.955733-5.12-7.748267-2.935466-12.629333l90.9312-233.6768c2.184533-4.846933 6.5536-6.826667 10.205866-3.8912 3.208533 3.140267 4.130133 8.977067 2.184534 13.585066l-90.2144 232.789334c-2.184533 4.846933-5.802667 5.802667-10.205867 3.857066z m154.2144-114.449067l-43.656533 46.557867c-2.798933 3.754667-7.3728 3.754667-10.171733 0a11.946667 11.946667 0 0 1 0-13.550933l37.819733-40.721067-37.819733-40.7552a11.9808 11.9808 0 0 1 0-13.550933c2.798933-3.754667 7.3728-3.754667 10.171733 0l43.690667 46.557866a14.472533 14.472533 0 0 1 2.1504 8.738134 12.3904 12.3904 0 0 1-2.184534 6.7584v-0.034134z" fill="#FFFFFF" ></path></symbol>
<symbol id="icon-json" viewBox="0 0 1024 1024"><path d="M535.1936 0h69.54496v95.27808c124.17536 0.67584 248.35072-1.3568 373.20192 0.67584a40.63744 40.63744 0 0 1 45.1584 45.1584c1.91488 234.57792 0 469.26848 1.1264 703.8464-1.1264 24.04864 2.25792 50.688-11.2896 72.02304-17.04448 12.42112-38.94272 11.2896-58.81344 11.2896h-349.1584v95.27808h-72.92416C354.9184 990.9248 177.4592 960.55808 0 928.72704V95.49312C178.36032 63.55968 356.8384 32.512 535.1936 0z" fill="#EC4F45" p-id="6512"></path><path d="M212.1472 742.64576c36.70016 0 65.37216-9.58464 86.016-28.75392 20.64384-19.16928 30.96576-48.57856 30.96576-88.22784V309.12512H254.90944v313.09824c0 19.33312-3.52256 34.4064-10.56768 45.21984-7.04512 10.81344-20.0704 16.22016-39.07584 16.22016-5.57056 0-11.0592-0.24576-16.46592-0.73728a372.4288 372.4288 0 0 1-15.48288-1.72032v58.9824c5.57056 0.65536 11.96032 1.2288 19.16928 1.72032a291.2256 291.2256 0 0 0 19.6608 0.73728zM604.73856 130.94912v762.10176h383.81568V130.94912z" fill="#FFFFFF" p-id="6513"></path><path d="M645.48864 294.2976h302.42304v110.29504h-302.42304V294.2976z m0 164.70528h302.42304v110.28992h-302.42304V459.008z m0 164.70016h302.42304v110.29504h-302.42304v-110.29504z" fill="#EC4F45" p-id="6514"></path></symbol>
diff --git a/web/src/constants/llm.ts b/web/src/constants/llm.ts
index 7f7418708d..5793030281 100644
--- a/web/src/constants/llm.ts
+++ b/web/src/constants/llm.ts
@@ -108,6 +108,7 @@ export enum LLMFactory {
AIMLAPI = 'aimlapi.com',
GreenPT = 'GreenPT',
Synthorai = 'Synthorai',
+ RadeonCloud = 'Radeon Cloud',
ApiRoute = 'API-Route',
CheaperInference = 'Cheaper Inference',
Opper = 'Opper',
@@ -205,6 +206,7 @@ export const IconMap = {
[LLMFactory.AIMLAPI]: 'aimlapi',
[LLMFactory.GreenPT]: 'greenpt',
[LLMFactory.Synthorai]: 'synthorai',
+ [LLMFactory.RadeonCloud]: 'radeon-cloud',
[LLMFactory.ApiRoute]: 'apiroute',
[LLMFactory.MWS]: 'mws',
[LLMFactory.CheaperInference]: 'cheaperinference',