Skip to content

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

feat: add WorldRouter model provider (#21603)

JinJing-tomoe0a52fc85618
diff --git a/conf/llm_factories.json b/conf/llm_factories.json
index a2a232aa67..2e22908a00 100644
--- a/conf/llm_factories.json
+++ b/conf/llm_factories.json
@@ -3532,6 +3532,15 @@
"llm": [],
"url": "https://api.runcrate.ai/v1"
},
+ {
+ "name": "WorldRouter",
+ "logo": "",
+ "tags": "LLM",
+ "status": "1",
+ "llm": [],
+ "rank": "990",
+ "url": "https://inference-api.worldrouter.ai/v1"
+ },
{
"name": "CloudGPU",
"logo": "",
diff --git a/conf/model.md b/conf/model.md
index d67b12143b..976945fca0 100644
--- a/conf/model.md
+++ b/conf/model.md
@@ -199,6 +199,7 @@ The following providers are **aggregators** — they host models from multiple u
| **TogetherAI** | Open-source model hosting |
| **TokenHub** | Multi-provider aggregator |
| **TrustedRouter** | OpenAI-compatible router |
+| **WorldRouter** | Multi-provider gateway with an OpenAI-compatible inference API |
| **AI Stupid Level** | Benchmark-based router (routes each request to the best-scoring model, with your own provider keys) |
| **TokenPony** | Multi-provider aggregator |
| **Volcengine (Doubao)** | ByteDance's cloud (hosts Doubao + third-party) |
diff --git a/conf/models/worldrouter.json b/conf/models/worldrouter.json
new file mode 100644
index 0000000000..a7d1474962
--- /dev/null
+++ b/conf/models/worldrouter.json
@@ -0,0 +1,13 @@
+{
+ "name": "WorldRouter",
+ "rank": 990,
+ "url": {
+ "default": "https://inference-api.worldrouter.ai/v1"
+ },
+ "url_suffix": {
+ "chat": "chat/completions",
+ "models": "models"
+ },
+ "class": "worldrouter",
+ "models": []
+}
diff --git a/internal/entity/models/factory.go b/internal/entity/models/factory.go
index 32beef1341..35c6cbbc3a 100644
--- a/internal/entity/models/factory.go
+++ b/internal/entity/models/factory.go
@@ -201,6 +201,8 @@ func (f *ModelFactory) CreateModelDriver(providerName string, baseURL map[string
return NewEmpirioLabsModel(baseURL, urlSuffix), nil
case "runcrate":
return NewRuncrateModel(baseURL, urlSuffix), nil
+ case "worldrouter":
+ return NewWorldRouterModel(baseURL, urlSuffix), nil
case "cloudgpu":
return NewCloudGPUModel(baseURL, urlSuffix), nil
case "new api":
diff --git a/internal/entity/models/worldrouter.go b/internal/entity/models/worldrouter.go
new file mode 100644
index 0000000000..9202d3c691
--- /dev/null
+++ b/internal/entity/models/worldrouter.go
@@ -0,0 +1,88 @@
+//
+// 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
+
+import (
+ "context"
+ "strings"
+)
+
+var worldRouterNonChatModelPrefixes = []string{
+ "gpt-image-",
+ "kling-",
+ "pixverse-",
+ "seedance-",
+}
+
+// WorldRouterModel drives WorldRouter's OpenAI-compatible inference gateway.
+// The gateway also exposes image and video models through /models, but RAGFlow
+// cannot call those task APIs through its chat model interface, so ListModels
+// only returns models that can use /chat/completions.
+type WorldRouterModel struct {
+ *OpenAIAPICompatibleModel
+}
+
+// NewWorldRouterModel creates a WorldRouter driver.
+func NewWorldRouterModel(baseURL map[string]string, urlSuffix URLSuffix) *WorldRouterModel {
+ return &WorldRouterModel{
+ OpenAIAPICompatibleModel: NewOpenAIAPICompatibleModel(baseURL, urlSuffix),
+ }
+}
+
+// Name returns the driver name.
+func (m *WorldRouterModel) Name() string {
+ return "worldrouter"
+}
+
+// NewInstance returns a driver bound to the given base URL.
+func (m *WorldRouterModel) NewInstance(baseURL map[string]string) ModelDriver {
+ return NewWorldRouterModel(baseURL, m.baseModel.URLSuffix)
+}
+
+// ListModels discovers the models available to the tenant's WorldRouter key.
+func (m *WorldRouterModel) ListModels(ctx context.Context, apiConfig *APIConfig) ([]ListModelResponse, error) {
+ models, err := m.OpenAIAPICompatibleModel.ListModels(ctx, apiConfig)
+ if err != nil {
+ return nil, err
+ }
+
+ filtered := make([]ListModelResponse, 0, len(models))
+ for _, model := range models {
+ if worldRouterSupportsChatModel(model) {
+ filtered = append(filtered, model)
+ }
+ }
+ return filtered, nil
+}
+
+func worldRouterSupportsChatModel(model ListModelResponse) bool {
+ name := strings.ToLower(strings.TrimSpace(model.Name))
+ if name == "" || name == "mock-test" {
+ return false
+ }
+ for _, prefix := range worldRouterNonChatModelPrefixes {
+ if strings.HasPrefix(name, prefix) {
+ return false
+ }
+ }
+ for _, modelType := range model.ModelTypes {
+ if modelType == modelTypeChat {
+ return true
+ }
+ }
+ return false
+}
diff --git a/internal/entity/models/worldrouter_test.go b/internal/entity/models/worldrouter_test.go
new file mode 100644
index 0000000000..67f32b385d
--- /dev/null
+++ b/internal/entity/models/worldrouter_test.go
@@ -0,0 +1,151 @@
+//
+// 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
+
+import (
+ "encoding/json"
+ "net/http"
+ "net/http/httptest"
+ "ragflow/internal/common"
+ "testing"
+)
+
+var worldRouterTestAPIKey = "sk-worldrouter-test"
+
+func newWorldRouterForTest(baseURL string) *WorldRouterModel {
+ return NewWorldRouterModel(
+ map[string]string{"default": baseURL},
+ URLSuffix{Chat: "chat/completions", Models: "models"},
+ )
+}
+
+func TestWorldRouterFactory(t *testing.T) {
+ driver, err := NewModelFactory().CreateModelDriver("worldrouter", map[string]string{"default": "http://unused"}, URLSuffix{})
+ if err != nil {
+ t.Fatalf("CreateModelDriver: %v", err)
+ }
+ if driver.Name() != "worldrouter" {
+ t.Fatalf("Name()=%q", driver.Name())
+ }
+ if _, ok := driver.(*WorldRouterModel); !ok {
+ t.Fatalf("driver type=%T, want *WorldRouterModel", driver)
+ }
+ if _, ok := driver.NewInstance(map[string]string{"default": "http://other"}).(*WorldRouterModel); !ok {
+ t.Fatal("NewInstance did not return *WorldRouterModel")
+ }
+}
+
+func TestWorldRouterProviderConfig(t *testing.T) {
+ dir, restore := setupProviderTestDir(t, "worldrouter.json")
+ defer restore()
+
+ if err := InitProviderManager(dir); err != nil {
+ t.Fatalf("InitProviderManager: %v", err)
+ }
+ provider := GetProviderManager().FindProvider("WorldRouter")
+ if provider == nil {
+ t.Fatal("WorldRouter provider not found")
+ }
+ if _, ok := provider.ModelDriver.(*WorldRouterModel); !ok {
+ t.Fatalf("ModelDriver=%T, want *WorldRouterModel", provider.ModelDriver)
+ }
+ if got := provider.URL["default"]; got != "https://inference-api.worldrouter.ai/v1" {
+ t.Errorf("default URL=%q", got)
+ }
+ if provider.URLSuffix.Chat != "chat/completions" || provider.URLSuffix.Models != "models" {
+ t.Errorf("URLSuffix=%+v", provider.URLSuffix)
+ }
+ if len(provider.Models) != 0 {
+ t.Errorf("models=%v, want dynamic discovery", provider.Models)
+ }
+}
+
+func TestWorldRouterChatSendsTenantAPIKey(t *testing.T) {
+ withSSRFBypass(t)
+ srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.URL.Path != "/chat/completions" {
+ t.Errorf("path=%s", r.URL.Path)
+ }
+ if got := r.Header.Get("Authorization"); got != "Bearer sk-worldrouter-test" {
+ t.Errorf("Authorization=%q", got)
+ }
+ var body struct {
+ Model string `json:"model"`
+ }
+ if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
+ t.Errorf("decode request: %v", err)
+ }
+ if body.Model != "gpt-6-luna" {
+ t.Errorf("model=%q", body.Model)
+ }
+ _ = json.NewEncoder(w).Encode(map[string]any{
+ "id": "chat-worldrouter",
+ "choices": []map[string]any{{"message": map[string]any{"content": "pong"}}},
+ "usage": map[string]any{"prompt_tokens": 3, "completion_tokens": 5, "total_tokens": 8},
+ })
+ }))
+ defer srv.Close()
+
+ usage := &common.ModelUsage{}
+ resp, err := newWorldRouterForTest(srv.URL).ChatWithMessages(
+ t.Context(),
+ "gpt-6-luna",
+ []Message{{Role: "user", Content: "ping"}},
+ &APIConfig{ApiKey: &worldRouterTestAPIKey},
+ nil,
+ usage,
+ )
+ if err != nil {
+ t.Fatalf("ChatWithMessages: %v", err)
+ }
+ if *resp.Answer != "pong" {
+ t.Errorf("Answer=%q", *resp.Answer)
+ }
+ assertModelUsage(t, usage, 3, 5, 8)
+}
+
+func TestWorldRouterListModelsFiltersUnsupportedModels(t *testing.T) {
+ withSSRFBypass(t)
+ srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.Method != http.MethodGet || r.URL.Path != "/models" {
+ t.Errorf("%s %s", r.Method, r.URL.Path)
+ }
+ if got := r.Header.Get("Authorization"); got != "Bearer sk-worldrouter-test" {
+ t.Errorf("Authorization=%q", got)
+ }
+ _ = json.NewEncoder(w).Encode(map[string]any{
+ "data": []map[string]any{
+ {"id": "gpt-6-luna"},
+ {"id": "new-chat-model"},
+ {"id": "mock-test"},
+ {"id": "gpt-image-2"},
+ {"id": "pixverse-c1"},
+ {"id": "seedance-2.5"},
+ {"id": "bge-m3"},
+ },
+ })
+ }))
+ defer srv.Close()
+
+ list, err := newWorldRouterForTest(srv.URL).ListModels(t.Context(), &APIConfig{ApiKey: &worldRouterTestAPIKey})
+ if err != nil {
+ t.Fatalf("ListModels: %v", err)
+ }
+ if got := joinModelNames(list, ","); got != "gpt-6-luna,new-chat-model" {
+ t.Errorf("models=%q", got)
+ }
+}
diff --git a/web/src/assets/svg/llm/worldrouter.svg b/web/src/assets/svg/llm/worldrouter.svg
new file mode 100644
index 0000000000..1b2838f9a6
--- /dev/null
+++ b/web/src/assets/svg/llm/worldrouter.svg
@@ -0,0 +1,13 @@
+<svg width="308" height="300" viewBox="0 0 308 300" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M9.246 167L0.966 133.42H8.74L15.226 161.94L13.616 160.882H17.802L16.008 161.94L21.022 134.662H27.278L20.7 167H9.246ZM29.256 167L22.172 134.662H28.75L34.546 161.94L32.798 160.882H36.8L35.282 161.94L40.94 133.42H48.3L40.94 167H29.256ZM63.7513 167.874C61.5433 167.874 59.5807 167.537 57.8633 166.862C56.146 166.157 54.6893 165.206 53.4933 164.01C52.328 162.814 51.4387 161.449 50.8253 159.916C50.212 158.352 49.9053 156.711 49.9053 154.994V153.936C49.9053 152.188 50.212 150.532 50.8253 148.968C51.4693 147.373 52.3893 145.978 53.5853 144.782C54.812 143.586 56.284 142.651 58.0013 141.976C59.7187 141.271 61.6353 140.918 63.7513 140.918C65.9287 140.918 67.8607 141.271 69.5473 141.976C71.2647 142.651 72.7213 143.586 73.9173 144.782C75.1133 145.978 76.0333 147.373 76.6773 148.968C77.3213 150.532 77.6433 152.188 77.6433 153.936V154.994C77.6433 156.711 77.3367 158.352 76.7233 159.916C76.11 161.449 75.2053 162.814 74.0093 164.01C72.844 165.206 71.4027 166.157 69.6853 166.862C67.968 167.537 65.99 167.874 63.7513 167.874ZM63.7513 161.664C65.1927 161.664 66.3887 161.357 67.3393 160.744C68.29 160.131 69.0107 159.272 69.5013 158.168C70.0227 157.064 70.2833 155.837 70.2833 154.488C70.2833 153.047 70.0227 151.789 69.5013 150.716C68.98 149.612 68.2287 148.738 67.2473 148.094C66.2967 147.45 65.1313 147.128 63.7513 147.128C62.402 147.128 61.2367 147.45 60.2553 148.094C59.274 148.738 58.5227 149.612 58.0013 150.716C57.5107 151.789 57.2653 153.047 57.2653 154.488C57.2653 155.837 57.5107 157.064 58.0013 158.168C58.492 159.272 59.228 160.131 60.2093 160.744C61.1907 161.357 62.3713 161.664 63.7513 161.664ZM82.7799 167V141.792H88.6219V152.602H88.4839C88.4839 149.045 89.2352 146.3 90.7379 144.368C92.2712 142.436 94.4792 141.47 97.3619 141.47H98.3279V147.818H96.4879C94.4639 147.818 92.8999 148.37 91.7959 149.474C90.6919 150.547 90.1399 152.111 90.1399 154.166V167H82.7799ZM102.463 167V133.42H109.869V167H102.463ZM99.4732 138.848V133.42H109.869V138.848H99.4732ZM127.047 167.828C125.268 167.828 123.643 167.506 122.171 166.862C120.73 166.218 119.472 165.329 118.399 164.194C117.326 163.029 116.498 161.664 115.915 160.1C115.363 158.536 115.087 156.849 115.087 155.04V153.982C115.087 152.173 115.348 150.486 115.869 148.922C116.421 147.358 117.203 145.993 118.215 144.828C119.258 143.632 120.5 142.712 121.941 142.068C123.382 141.393 124.992 141.056 126.771 141.056C128.795 141.056 130.543 141.501 132.015 142.39C133.487 143.249 134.637 144.537 135.465 146.254C136.293 147.941 136.753 150.026 136.845 152.51L134.913 150.716V133.42H142.319V167H136.477V156.558H137.489C137.397 158.95 136.891 160.989 135.971 162.676C135.082 164.363 133.87 165.651 132.337 166.54C130.804 167.399 129.04 167.828 127.047 167.828ZM128.887 161.664C130.022 161.664 131.049 161.419 131.969 160.928C132.92 160.407 133.671 159.655 134.223 158.674C134.806 157.693 135.097 156.512 135.097 155.132V153.43C135.097 152.081 134.806 150.946 134.223 150.026C133.64 149.106 132.874 148.401 131.923 147.91C130.972 147.419 129.945 147.174 128.841 147.174C127.614 147.174 126.51 147.496 125.529 148.14C124.578 148.753 123.827 149.612 123.275 150.716C122.723 151.789 122.447 153.047 122.447 154.488C122.447 155.96 122.723 157.233 123.275 158.306C123.827 159.379 124.594 160.207 125.575 160.79C126.556 161.373 127.66 161.664 128.887 161.664ZM149.409 167V133.144H156.953V167H149.409ZM169.787 167L159.943 152.556H168.223L178.527 167H169.787ZM154.929 156.236V150.302H163.209C164.313 150.302 165.263 150.087 166.061 149.658C166.889 149.198 167.517 148.569 167.947 147.772C168.407 146.944 168.637 145.993 168.637 144.92C168.637 143.847 168.407 142.911 167.947 142.114C167.517 141.286 166.889 140.657 166.061 140.228C165.263 139.768 164.313 139.538 163.209 139.538H154.929V133.144H162.611C165.401 133.144 167.824 133.573 169.879 134.432C171.933 135.26 173.513 136.502 174.617 138.158C175.721 139.814 176.273 141.899 176.273 144.414V145.15C176.273 147.634 175.705 149.704 174.571 151.36C173.467 152.985 171.887 154.212 169.833 155.04C167.809 155.837 165.401 156.236 162.611 156.236H154.929ZM194.429 167.874C192.221 167.874 190.258 167.537 188.541 166.862C186.824 166.157 185.367 165.206 184.171 164.01C183.006 162.814 182.116 161.449 181.503 159.916C180.89 158.352 180.583 156.711 180.583 154.994V153.936C180.583 152.188 180.89 150.532 181.503 148.968C182.147 147.373 183.067 145.978 184.263 144.782C185.49 143.586 186.962 142.651 188.679 141.976C190.396 141.271 192.313 140.918 194.429 140.918C196.606 140.918 198.538 141.271 200.225 141.976C201.942 142.651 203.399 143.586 204.595 144.782C205.791 145.978 206.711 147.373 207.355 148.968C207.999 150.532 208.321 152.188 208.321 153.936V154.994C208.321 156.711 208.014 158.352 207.401 159.916C206.788 161.449 205.883 162.814 204.687 164.01C203.522 165.206 202.08 166.157 200.363 166.862C198.646 167.537 196.668 167.874 194.429 167.874ZM194.429 161.664C195.87 161.664 197.066 161.357 198.017 160.744C198.968 160.131 199.688 159.272 200.179 158.168C200.7 157.064 200.961 155.837 200.961 154.488C200.961 153.047 200.7 151.789 200.179 150.716C199.658 149.612 198.906 148.738 197.925 148.094C196.974 147.45 195.809 147.128 194.429 147.128C193.08 147.128 191.914 147.45 190.933 148.094C189.952 148.738 189.2 149.612 188.679 150.716C188.188 151.789 187.943 153.047 187.943 154.488C187.943 155.837 188.188 157.064 188.679 158.168C189.17 159.272 189.906 160.131 190.887 160.744C191.868 161.357 193.049 161.664 194.429 161.664ZM221.968 167.782C219.054 167.782 216.816 166.847 215.252 164.976C213.688 163.075 212.906 160.223 212.906 156.42V141.792H220.266V156.788C220.266 158.137 220.649 159.211 221.416 160.008C222.182 160.805 223.21 161.204 224.498 161.204C225.816 161.204 226.89 160.79 227.718 159.962C228.546 159.134 228.96 158.015 228.96 156.604V141.792H236.32V167H230.478V156.374H230.984C230.984 158.919 230.646 161.051 229.972 162.768C229.328 164.455 228.362 165.712 227.074 166.54C225.786 167.368 224.191 167.782 222.29 167.782H221.968ZM254.56 167.322C252.015 167.322 249.96 167.015 248.396 166.402C246.832 165.758 245.682 164.7 244.946 163.228C244.241 161.725 243.888 159.701 243.888 157.156V134.984H250.742V157.432C250.742 158.628 251.049 159.548 251.662 160.192C252.306 160.805 253.211 161.112 254.376 161.112H258.102V167.322H254.56ZM240.07 147.174V141.792H258.102V147.174H240.07ZM274.508 167.874C272.361 167.874 270.46 167.506 268.804 166.77C267.178 166.034 265.814 165.053 264.71 163.826C263.636 162.569 262.808 161.173 262.226 159.64C261.674 158.076 261.398 156.481 261.398 154.856V153.936C261.398 152.249 261.674 150.639 262.226 149.106C262.808 147.542 263.636 146.147 264.71 144.92C265.783 143.693 267.117 142.727 268.712 142.022C270.337 141.286 272.177 140.918 274.232 140.918C276.93 140.918 279.2 141.531 281.04 142.758C282.91 143.954 284.336 145.533 285.318 147.496C286.299 149.428 286.79 151.544 286.79 153.844V156.328H264.48V152.142H282.328L279.936 154.074C279.936 152.571 279.721 151.283 279.292 150.21C278.862 149.137 278.218 148.324 277.36 147.772C276.532 147.189 275.489 146.898 274.232 146.898C272.944 146.898 271.855 147.189 270.966 147.772C270.076 148.355 269.402 149.213 268.942 150.348C268.482 151.452 268.252 152.817 268.252 154.442C268.252 155.945 268.466 157.263 268.896 158.398C269.325 159.502 270 160.361 270.92 160.974C271.84 161.587 273.036 161.894 274.508 161.894C275.857 161.894 276.961 161.633 277.82 161.112C278.678 160.591 279.261 159.947 279.568 159.18H286.33C285.962 160.867 285.241 162.369 284.168 163.688C283.094 165.007 281.745 166.034 280.12 166.77C278.494 167.506 276.624 167.874 274.508 167.874ZM291.667 167V141.792H297.509V152.602H297.371C297.371 149.045 298.122 146.3 299.625 144.368C301.158 142.436 303.366 141.47 306.249 141.47H307.215V147.818H305.375C303.351 147.818 301.787 148.37 300.683 149.474C299.579 150.547 299.027 152.111 299.027 154.166V167H291.667Z" fill="#ffd36b"/>
+<path d="M188.504 298.006L177.539 300L167.572 254.152L157.605 294.02H149.633L139.666 254.152L129.699 300L118.736 298.006L133.686 237.209L143.652 238.141L153.619 274.086L163.586 238.141L173.553 237.209L188.504 298.006Z" fill="#ffd36b"/>
+<path d="M100.918 221.35L91.5762 257.463L118.18 231.316L127.277 235.492L109.826 295.619L99.334 291.863L113.627 247.176L85.0625 276.719L78.1562 272.732L89.459 233.223L57.9043 267.943L49.4062 260.736L92.752 215.559L100.918 221.35Z" fill="#ffd36b"/>
+<path d="M257.832 260.736L249.334 267.943L217.779 233.223L229.082 272.732L222.176 276.719L193.611 247.176L207.904 291.863L197.412 295.619L179.961 235.492L189.059 231.316L215.662 257.463L206.322 221.35L214.486 215.559L257.832 260.736Z" fill="#ffd36b"/>
+<path d="M72.3027 185.439L46.1562 212.043L82.2695 202.703L88.0605 210.867L42.8828 254.213L35.6758 245.717L70.3965 214.16L30.8867 225.463L26.9004 218.559L56.4434 189.992L11.7559 204.285L8 193.793L68.127 176.342L72.3027 185.439Z" fill="#ffd36b"/>
+<path d="M299.238 193.793L295.482 204.283L250.795 189.992L280.338 218.557L276.352 225.463L236.842 214.16L271.562 245.715L264.355 254.213L219.178 210.867L224.969 202.701L261.082 212.043L234.936 185.439L239.111 176.342L299.238 193.793Z" fill="#ffd36b"/>
+<path d="M88.0605 89.1328L82.2695 97.2988L46.1562 87.957L72.3027 114.561L68.127 123.658L8 106.207L11.7559 95.7168L56.4434 110.008L26.9004 81.4434L30.8867 74.5371L70.3965 85.8398L35.6758 54.2852L42.8828 45.7871L88.0605 89.1328Z" fill="#ffd36b"/>
+<path d="M271.562 54.2832L236.842 85.8398L276.352 74.5371L280.338 81.4414L250.795 110.008L295.482 95.7148L299.238 106.207L239.111 123.658L234.936 114.561L261.082 87.957L224.969 97.2969L219.178 89.1328L264.355 45.7871L271.562 54.2832Z" fill="#ffd36b"/>
+<path d="M127.277 64.5078L118.18 68.6836L91.5762 42.5371L100.916 78.6504L92.752 84.4414L49.4062 39.2637L57.9043 32.0566L89.459 66.7773L78.1562 27.2676L85.0625 23.2812L113.627 52.8242L99.334 8.13672L109.826 4.38086L127.277 64.5078Z" fill="#ffd36b"/>
+<path d="M207.904 8.13672L193.611 52.8242L222.176 23.2812L229.082 27.2676L217.779 66.7773L249.334 32.0566L257.832 39.2637L214.486 84.4414L206.32 78.6504L215.662 42.5371L189.059 68.6836L179.961 64.5078L197.412 4.38086L207.904 8.13672Z" fill="#ffd36b"/>
+<path d="M188.502 1.99414L173.553 62.791L163.586 61.8594L153.619 25.9141L143.652 61.8594L133.686 62.791L118.736 1.99414L129.699 0L139.666 45.8477L149.633 5.98047H157.605L167.572 45.8477L177.539 0L188.502 1.99414Z" fill="#ffd36b"/>
+</svg>
diff --git a/web/src/components/svg-icon.tsx b/web/src/components/svg-icon.tsx
index f85be88ed3..5d5e363911 100644
--- a/web/src/components/svg-icon.tsx
+++ b/web/src/components/svg-icon.tsx
@@ -122,6 +122,7 @@ const svgIcons = [
LLMFactory.EmpirioLabs,
LLMFactory.AIStupidLevel,
LLMFactory.Runcrate,
+ LLMFactory.WorldRouter,
LLMFactory.CloudGPU,
];
diff --git a/web/src/constants/llm.ts b/web/src/constants/llm.ts
index bd9a4f218b..4a8dd57de2 100644
--- a/web/src/constants/llm.ts
+++ b/web/src/constants/llm.ts
@@ -117,6 +117,7 @@ export enum LLMFactory {
EmpirioLabs = 'EmpirioLabs AI',
AIStupidLevel = 'AI Stupid Level',
Runcrate = 'Runcrate',
+ WorldRouter = 'WorldRouter',
CloudGPU = 'CloudGPU',
SystemOne = 'SystemOne',
}
@@ -218,6 +219,7 @@ export const IconMap = {
[LLMFactory.EmpirioLabs]: 'empiriolabs',
[LLMFactory.AIStupidLevel]: 'aistupidlevel',
[LLMFactory.Runcrate]: 'runcrate',
+ [LLMFactory.WorldRouter]: 'worldrouter',
[LLMFactory.CloudGPU]: 'cloudgpu',
};
@@ -267,6 +269,8 @@ export const APIMapUrl = {
[LLMFactory.AIStupidLevel]: 'https://aistupidlevel.info/router/keys',
[LLMFactory.Runcrate]:
'https://www.runcrate.ai/dashboard/api-keys?utm_source=ragflow&utm_medium=directory&utm_campaign=gpu_pricing',
+ [LLMFactory.WorldRouter]:
+ 'https://worldrouter.ai/dashboard/api-keys?utm_source=ragflow&utm_medium=provider&utm_campaign=integration',
[LLMFactory.CloudGPU]: 'https://cloudgpu.app/api/console',
[LLMFactory.MWS]:
'https://mws.ru/docs/cloud-platform/gpt/general/inference-text.html',