RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
feat: add Wally as a model provider (#21719)
Aditya Batra6ec4e3d80b1d
diff --git a/conf/llm_factories.json b/conf/llm_factories.jsonindex 5d33e4c01f..c77467af40 100644--- a/conf/llm_factories.json+++ b/conf/llm_factories.json@@ -3503,6 +3503,14 @@"llm": [],"url": "https://api.cheapaimodel.ai/v1"},+ {+ "name": "Wally",+ "logo": "",+ "tags": "LLM,IMAGE2TEXT",+ "status": "1",+ "llm": [],+ "url": "https://inference.runanywhere.ai/v1"+ },{"name": "StepFun","logo": "",diff --git a/conf/model.md b/conf/model.mdindex 37510a4abb..5d7add1517 100644--- a/conf/model.md+++ b/conf/model.md@@ -202,6 +202,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 |+| **Wally** | OpenAI-compatible API for open-weight models || **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 |diff --git a/conf/models/wally.json b/conf/models/wally.jsonnew file mode 100644index 0000000000..e20fca0acf--- /dev/null+++ b/conf/models/wally.json@@ -0,0 +1,104 @@+{+ "name": "Wally",+ "url": {+ "default": "https://inference.runanywhere.ai/v1"+ },+ "url_suffix": {+ "chat": "chat/completions",+ "models": "models"+ },+ "class": "wally",+ "models": [+ {+ "name": "glm-5.3-flash",+ "context_length": 1048576,+ "max_output": 131072,+ "model_types": [+ "chat"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "glm-5.3-fast",+ "context_length": 1048576,+ "max_output": 131072,+ "model_types": [+ "chat"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "deepseek-v4.1-flash",+ "context_length": 1048576,+ "max_output": 65536,+ "model_types": [+ "chat",+ "vision"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "deepseek-v4.1-flash-fast",+ "context_length": 1048576,+ "max_output": 65536,+ "model_types": [+ "chat",+ "vision"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "deepseek-v4-pro-fast",+ "context_length": 1048576,+ "max_output": 65536,+ "model_types": [+ "chat"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "deepseek-v4-flash-0731",+ "context_length": 1048576,+ "max_output": 65536,+ "model_types": [+ "chat"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "kimi-k3",+ "context_length": 1048576,+ "max_output": 65536,+ "model_types": [+ "chat",+ "vision"+ ],+ "tools": {+ "support": true+ }+ },+ {+ "name": "minimax-m3",+ "context_length": 524287,+ "max_output": 131072,+ "model_types": [+ "chat"+ ],+ "tools": {+ "support": true+ }+ }+ ]+}diff --git a/internal/entity/models/factory.go b/internal/entity/models/factory.goindex 5ece573e90..0bb580ab2b 100644--- a/internal/entity/models/factory.go+++ b/internal/entity/models/factory.go@@ -213,6 +213,8 @@ func (f *ModelFactory) CreateModelDriver(providerName string, baseURL map[stringreturn NewNewAPIModel(baseURL, urlSuffix), nilcase "hostinger router":return NewHostingerRouterModel(baseURL, urlSuffix), nil+ case "wally":+ return NewWallyModel(baseURL, urlSuffix), nildefault:return NewDummyModel(baseURL, urlSuffix), nil}diff --git a/internal/entity/models/wally.go b/internal/entity/models/wally.gonew file mode 100644index 0000000000..a6a53bb6a9--- /dev/null+++ b/internal/entity/models/wally.go@@ -0,0 +1,41 @@+//+// 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++// WallyModel drives Wally (https://inference.runanywhere.ai/v1), which serves+// open-weight models through OpenAI-compatible chat and model-list endpoints,+// so the embedded OpenAIAPICompatibleModel covers every call.+type WallyModel struct {+ *OpenAIAPICompatibleModel+}++// NewWallyModel creates a Wally driver.+func NewWallyModel(baseURL map[string]string, urlSuffix URLSuffix) *WallyModel {+ return &WallyModel{+ OpenAIAPICompatibleModel: NewOpenAIAPICompatibleModel(baseURL, urlSuffix),+ }+}++// Name returns the driver name.+func (m *WallyModel) Name() string {+ return "wally"+}++// NewInstance returns a driver bound to the given base URL.+func (m *WallyModel) NewInstance(baseURL map[string]string) ModelDriver {+ return NewWallyModel(baseURL, m.baseModel.URLSuffix)+}diff --git a/internal/entity/models/wally_test.go b/internal/entity/models/wally_test.gonew file mode 100644index 0000000000..5e29707b5f--- /dev/null+++ b/internal/entity/models/wally_test.go@@ -0,0 +1,153 @@+//+// 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"+)++// newWallyForTest creates a WallyModel instance for testing.+func newWallyForTest(baseURL string) *WallyModel {+ return NewWallyModel(+ map[string]string{"default": baseURL},+ URLSuffix{Chat: "chat/completions", Models: "models"},+ )+}++// TestWallyName tests the driver name.+func TestWallyName(t *testing.T) {+ if got := newWallyForTest("http://unused").Name(); got != "wally" {+ t.Errorf("Name()=%q", got)+ }+}++// TestWallyFactory tests creating the driver from factory.+func TestWallyFactory(t *testing.T) {+ driver, err := NewModelFactory().CreateModelDriver("wally", map[string]string{"default": "http://unused"}, URLSuffix{})+ if err != nil {+ t.Fatalf("CreateModelDriver: %v", err)+ }+ if _, ok := driver.(*WallyModel); !ok {+ t.Fatalf("driver type=%T, want *WallyModel", driver)+ }+ if _, ok := driver.NewInstance(map[string]string{"default": "http://other"}).(*WallyModel); !ok {+ t.Fatal("NewInstance did not return *WallyModel")+ }+}++// The shipped config must resolve to the Wally driver. CreateModelDriver+// dispatches on strings.ToLower(name), so the "Wally" provider name has+// to match the "wally" case; anything else silently falls through to+// DummyModel.+func TestWallyProviderConfig(t *testing.T) {+ dir, restore := setupProviderTestDir(t, "wally.json")+ defer restore()++ if err := InitProviderManager(dir); err != nil {+ t.Fatalf("InitProviderManager: %v", err)+ }++ provider := GetProviderManager().FindProvider("Wally")+ if provider == nil {+ t.Fatal("Wally provider not found")+ }+ if _, ok := provider.ModelDriver.(*WallyModel); !ok {+ t.Fatalf("ModelDriver=%T, want *models.WallyModel", provider.ModelDriver)+ }+}++// TestWallyChatSendsAPIKey tests chat completion authentication and that+// the model id reaches the API unchanged.+func TestWallyChatSendsAPIKey(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-gw-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 != "deepseek-v4.1-flash" {+ t.Errorf("model=%q", body.Model)+ }+ _ = json.NewEncoder(w).Encode(map[string]any{+ "id": "chat-wally",+ "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 := newWallyForTest(srv.URL).ChatWithMessages(+ t.Context(),+ "deepseek-v4.1-flash",+ []Message{{Role: "user", Content: "ping"}},+ &APIConfig{ApiKey: &testAPIKey},+ 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)+}++// TestWallyListModelsAndCheckConnection tests model listing and connectivity check.+func TestWallyListModelsAndCheckConnection(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-gw-test" {+ t.Errorf("Authorization=%q", got)+ }+ _ = json.NewEncoder(w).Encode(map[string]any{+ "data": []map[string]any{+ {"id": "deepseek-v4.1-flash"},+ {"id": "glm-5.3-flash"},+ },+ })+ }))+ defer srv.Close()++ model := newWallyForTest(srv.URL)+ list, err := model.ListModels(t.Context(), &APIConfig{ApiKey: &testAPIKey})+ if err != nil {+ t.Fatalf("ListModels: %v", err)+ }+ if joinModelNames(list, ",") != "deepseek-v4.1-flash,glm-5.3-flash" {+ t.Errorf("models=%v", list)+ }+ if err := model.CheckConnection(t.Context(), &APIConfig{ApiKey: &testAPIKey}); err != nil {+ t.Fatalf("CheckConnection: %v", err)+ }+}diff --git a/web/src/assets/svg/llm/wally.svg b/web/src/assets/svg/llm/wally.svgnew file mode 100644index 0000000000..986aab07da--- /dev/null+++ b/web/src/assets/svg/llm/wally.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="95.9 105.9 320.7 320.7"><defs><linearGradient id="wally-23" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-24" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-31" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-32" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-33" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-34" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-35" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-39" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-40" x1="0" x2="0" y1="-128" y2="-42" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></linearGradient><linearGradient id="wally-41" x1="0" x2="0" y1="-128" y2="-42" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".2"/><stop offset="30%" stop-color="#FFF" stop-opacity="0"/><stop offset="66%" stop-color="#FFF" stop-opacity="0"/><stop offset="100%" stop-color="#FFF" stop-opacity=".2"/></linearGradient><linearGradient id="wally-43" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-47" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-48" x1="-6" x2="25.08" y1="0" y2="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></linearGradient><linearGradient id="wally-49" x1="-6" x2="25.08" y1="0" y2="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"/><stop offset="34%" stop-color="#FFF" stop-opacity=".17"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></linearGradient><linearGradient id="wally-51" x1="0" x2="0" y1="-11" y2="11" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF"/></linearGradient><linearGradient id="wally-52" x1="0" x2="0" y1="-11" y2="11" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".22"/><stop offset="34%" stop-color="#FFF" stop-opacity=".02"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></linearGradient><linearGradient id="wally-54" x1="-80.24" x2="80.24" y1="-322" y2="12" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-55" x1="-6" x2="25.08" y1="0" y2="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></linearGradient><linearGradient id="wally-56" x1="-6" x2="25.08" y1="0" y2="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"/><stop offset="34%" stop-color="#FFF" stop-opacity=".17"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></linearGradient><linearGradient id="wally-58" x1="0" x2="0" y1="-11" y2="11" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF"/></linearGradient><linearGradient id="wally-59" x1="0" x2="0" y1="-11" y2="11" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".22"/><stop offset="34%" stop-color="#FFF" stop-opacity=".02"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></linearGradient><linearGradient id="wally-64" x1="-174.24" x2="-13.76" y1="-302" y2="32" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><linearGradient id="wally-65" x1="13.76" x2="174.24" y1="-302" y2="32" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FA2B36"/></linearGradient><mask id="wally-3_1" mask-type="alpha"><use xlink:href="#wally-3"/></mask><mask id="wally-19"><path fill="url(#wally-18)" d="M0-59.135c32.637 0 59.135 26.498 59.135 59.135S32.637 59.135 0 59.135-59.135 32.637-59.135 0-32.637-59.135 0-59.135"/></mask><mask id="wally-22"><path fill="url(#wally-21)" d="M0-59.135c32.637 0 59.135 26.498 59.135 59.135S32.637 59.135 0 59.135-59.135 32.637-59.135 0-32.637-59.135 0-59.135"/></mask><mask id="wally-11_1" mask-type="alpha"><use xlink:href="#wally-11"/></mask><mask id="wally-42"><path fill="url(#wally-41)" d="M-84.55-128h169.1c14.26 0 27.41 8.74 27.41 23L118-65c0 14.26-8.74 23-23 23H-95c-14.26 0-23-8.74-23-23l6.04-40c0-14.26 13.15-23 27.41-23"/></mask><mask id="wally-50"><path fill="url(#wally-49)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11"/></mask><mask id="wally-53"><path fill="url(#wally-52)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11"/></mask><mask id="wally-57"><path fill="url(#wally-56)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11"/></mask><mask id="wally-60"><path fill="url(#wally-59)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11"/></mask><mask id="wally-71"><path fill="url(#wally-70)" d="M0-113.42c62.596 0 113.42 50.824 113.42 113.42S62.596 113.42 0 113.42-113.42 62.596-113.42 0-62.596-113.42 0-113.42"/></mask><mask id="wally-74"><path fill="url(#wally-73)" d="M0-41.82c23.08 0 41.82 18.74 41.82 41.82S23.08 41.82 0 41.82-41.82 23.08-41.82 0-23.08-41.82 0-41.82"/></mask><mask id="wally-77"><path fill="url(#wally-76)" d="M0-41.82c23.08 0 41.82 18.74 41.82 41.82S23.08 41.82 0 41.82-41.82 23.08-41.82 0-23.08-41.82 0-41.82"/></mask><radialGradient id="wally-17" cx="0" cy="0" r="59.14" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FF6900"/></radialGradient><radialGradient id="wally-18" cx="0" cy="0" r="59.14" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".34"/><stop offset="45%" stop-color="#FFF" stop-opacity=".16"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></radialGradient><radialGradient id="wally-20" cx="0" cy="0" r="59.14" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FF6900"/><stop offset="100%" stop-color="#FF6900"/></radialGradient><radialGradient id="wally-21" cx="0" cy="0" r="59.14" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".34"/><stop offset="45%" stop-color="#FFF" stop-opacity=".16"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></radialGradient><radialGradient id="wally-69" cx="0" cy="0" r="113.42" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></radialGradient><radialGradient id="wally-70" cx="0" cy="0" r="113.42" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".13"/><stop offset="50%" stop-color="#FFF" stop-opacity=".08"/><stop offset="82%" stop-color="#FFF" stop-opacity=".02"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></radialGradient><radialGradient id="wally-72" cx="0" cy="0" r="41.82" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></radialGradient><radialGradient id="wally-73" cx="0" cy="0" r="41.82" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".32"/><stop offset="50%" stop-color="#FFF" stop-opacity=".19"/><stop offset="82%" stop-color="#FFF" stop-opacity=".04"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></radialGradient><radialGradient id="wally-75" cx="0" cy="0" r="41.82" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#0F172B"/><stop offset="100%" stop-color="#0F172B"/></radialGradient><radialGradient id="wally-76" cx="0" cy="0" r="41.82" fx="0" fy="0" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0%" stop-color="#FFF" stop-opacity=".32"/><stop offset="50%" stop-color="#FFF" stop-opacity=".19"/><stop offset="82%" stop-color="#FFF" stop-opacity=".04"/><stop offset="100%" stop-color="#FFF" stop-opacity="0"/></radialGradient><path id="wally-3" fill="#FFF" d="M79-261c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39m-158 0c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39" style="display:block" transform="rotate(-.084 273578.928 -175807.408)"/><path id="wally-11" fill="#FFF" d="M79-261c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39m-158 0c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39" style="display:block" transform="rotate(-.084 273578.928 -175807.408)"/><clipPath id="wally-2"><path d="M0 0h512v512H0z"/></clipPath></defs><g clip-path="url(#wally-2)"><g style="display:block"><path fill="url(#wally-69)" d="M0-113.42c62.596 0 113.42 50.824 113.42 113.42S62.596 113.42 0 113.42-113.42 62.596-113.42 0-62.596-113.42 0-113.42" mask="url(#wally-71)" transform="matrix(.99313 0 0 .116 256 406.938)"/><path fill="url(#wally-72)" d="M0-41.82c23.08 0 41.82 18.74 41.82 41.82S23.08 41.82 0 41.82-41.82 23.08-41.82 0-23.08-41.82 0-41.82" mask="url(#wally-74)" transform="matrix(.99313 0 0 .19594 349.354 406.938)"/><path fill="url(#wally-75)" d="M0-41.82c23.08 0 41.82 18.74 41.82 41.82S23.08 41.82 0 41.82-41.82 23.08-41.82 0-23.08-41.82 0-41.82" mask="url(#wally-77)" transform="matrix(.99313 0 0 .19594 162.646 406.938)"/></g><g style="display:block"><path fill="url(#wally-64)" d="M41-1.15v2.3C41 13.209 31.209 23 19.15 23h-38.3C-31.209 23-41 13.209-41 1.15v-2.3C-41-13.209-31.209-23-19.15-23h38.3C31.209-23 41-13.209 41-1.15m-7 .6v1.1C34 8.8 27.3 15.5 19.05 15.5h-38.1C-27.3 15.5-34 8.8-34 .55v-1.1c0-8.25 6.7-14.95 14.95-14.95h38.1C27.3-15.5 34-8.8 34-.55M0-5.52A5.523 5.523 0 0 1 5.52 0 5.523 5.523 0 0 1 0 5.52 5.523 5.523 0 0 1-5.52 0 5.523 5.523 0 0 1 0-5.52m-22.14-4.14c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66S-31.8 5.331-31.8 0s4.329-9.66 9.66-9.66m44.28 0c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66S12.48 5.331 12.48 0s4.329-9.66 9.66-9.66" transform="matrix(1.025 0 0 1 350 379.5)"/><path fill="#FFF" fill-opacity=".06" d="M384.85 378.95v1.1c0 8.25-6.867 14.95-15.324 14.95h-39.052c-8.457 0-15.324-6.7-15.324-14.95v-1.1c0-8.25 6.867-14.95 15.324-14.95h39.052c8.457 0 15.324 6.7 15.324 14.95"/><path fill="#0C0C16" fill-opacity=".32" d="M350 373.98c3.123 0 5.658 2.474 5.658 5.52s-2.535 5.52-5.658 5.52-5.658-2.474-5.658-5.52 2.535-5.52 5.658-5.52m-22.693-4.14c5.464 0 9.901 4.329 9.901 9.66s-4.437 9.66-9.901 9.66c-5.465 0-9.902-4.329-9.902-9.66s4.437-9.66 9.902-9.66m45.386 0c5.465 0 9.902 4.329 9.902 9.66s-4.437 9.66-9.902 9.66-9.901-4.329-9.901-9.66 4.437-9.66 9.901-9.66"/><path fill="url(#wally-65)" d="M41-1.15v2.3C41 13.209 31.209 23 19.15 23h-38.3C-31.209 23-41 13.209-41 1.15v-2.3C-41-13.209-31.209-23-19.15-23h38.3C31.209-23 41-13.209 41-1.15m-7 .6v1.1C34 8.8 27.3 15.5 19.05 15.5h-38.1C-27.3 15.5-34 8.8-34 .55v-1.1c0-8.25 6.7-14.95 14.95-14.95h38.1C27.3-15.5 34-8.8 34-.55M0-5.52A5.523 5.523 0 0 1 5.52 0 5.523 5.523 0 0 1 0 5.52 5.523 5.523 0 0 1-5.52 0 5.523 5.523 0 0 1 0-5.52m-22.14-4.14c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66S-31.8 5.331-31.8 0s4.329-9.66 9.66-9.66m44.28 0c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66S12.48 5.331 12.48 0s4.329-9.66 9.66-9.66" transform="translate(162 378)"/><path fill="#FFF" fill-opacity=".06" d="M196 377.45v1.1c0 8.25-6.7 14.95-14.95 14.95h-38.1c-8.25 0-14.95-6.7-14.95-14.95v-1.1c0-8.25 6.7-14.95 14.95-14.95h38.1c8.25 0 14.95 6.7 14.95 14.95"/><path fill="#0C0C16" fill-opacity=".32" d="M162 372.48a5.523 5.523 0 0 1 5.52 5.52 5.523 5.523 0 0 1-5.52 5.52 5.523 5.523 0 0 1-5.52-5.52 5.523 5.523 0 0 1 5.52-5.52m-22.14-4.14c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66-9.66-4.329-9.66-9.66 4.329-9.66 9.66-9.66m44.28 0c5.331 0 9.66 4.329 9.66 9.66s-4.329 9.66-9.66 9.66-9.66-4.329-9.66-9.66 4.329-9.66 9.66-9.66"/></g><g style="display:block"><path fill="url(#wally-47)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m0 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m0 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m-4-12.5c6.899 0 12.5 5.601 12.5 12.5S34.899 12.5 28 12.5 15.5 6.899 15.5 0 21.101-12.5 28-12.5" transform="rotate(14 -988.786 1642.56)"/><path fill="url(#wally-48)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11" mask="url(#wally-50)" transform="rotate(14 -988.786 1642.56)"/><path fill="url(#wally-51)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11" mask="url(#wally-53)" transform="rotate(14 -988.786 1642.56)"/><path fill="#0C0C16" fill-opacity=".26" d="M398.192 282.645c6.694 1.67 10.774 8.459 9.105 15.153s-8.459 10.773-15.153 9.105c-6.694-1.67-10.773-8.46-9.104-15.153 1.669-6.694 8.458-10.774 15.152-9.105"/><path fill="url(#wally-54)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m0 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m0 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11m-4-12.5c6.899 0 12.5 5.601 12.5 12.5S34.899 12.5 28 12.5 15.5 6.899 15.5 0 21.101-12.5 28-12.5" transform="scale(-1 1)rotate(-20 744.665 552.332)"/><path fill="url(#wally-55)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11" mask="url(#wally-57)" transform="scale(-1 1)rotate(-20 744.665 552.332)"/><path fill="url(#wally-58)" d="M32 0c0 6.07-4.93 11-11 11H5C-1.07 11-6 6.07-6 0s4.93-11 11-11h16c6.07 0 11 4.93 11 11" mask="url(#wally-60)" transform="scale(-1 1)rotate(-20 744.665 552.332)"/><path fill="#0C0C16" fill-opacity=".26" d="M121.964 266.677c-6.483-2.36-13.662.988-16.022 7.471s.989 13.662 7.471 16.022 13.662-.989 16.022-7.471-.988-13.662-7.471-16.022"/></g><g style="display:block"><path fill="url(#wally-39)" d="M-84.55-128h169.1c14.26 0 27.41 8.74 27.41 23L118-65c0 14.26-8.74 23-23 23H-95c-14.26 0-23-8.74-23-23l6.04-40c0-14.26 13.15-23 27.41-23" transform="matrix(.9945 0 0 1.01 256 398)"/><path fill="url(#wally-40)" d="M-84.55-128h169.1c14.26 0 27.41 8.74 27.41 23L118-65c0 14.26-8.74 23-23 23H-95c-14.26 0-23-8.74-23-23l6.04-40c0-14.26 13.15-23 27.41-23" mask="url(#wally-42)" transform="matrix(.9945 0 0 1.01 256 398)"/><path fill="none" stroke="#0F162B" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".22" stroke-width="2" d="M24-38h57m-105 0h-57" transform="matrix(.9945 0 0 1.01 256 398)"/><path fill="none" stroke="#FFF" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width="2" d="M24-38h57m-105 0h-57" transform="matrix(.9945 0 0 1.01 256 400.525)"/><path fill="#FFF" fill-opacity=".62" d="M250.55 335.47a9.56 9.56 0 0 1 5.649-1.847h5.38c0 .01-.219 1.191-.457 1.919-.239.717-.776 1.777-.776 1.777h-5.907c-2.148 0-3.889 1.768-3.889 3.96v5.746s-.935 1.111-1.62 1.717c-.687.606-1.87 1.384-1.88 1.384V333.36zm14.4 18.09-3.5-2.11a9.56 9.56 0 0 1-5.649 1.847h-5.38c0-.01.219-1.191.457-1.919.239-.717.776-1.777.776-1.777h5.907c2.148 0 3.889-1.768 3.889-3.96v-5.746s.935-1.111 1.62-1.717c.687-.606 1.87-1.384 1.88-1.384z"/><path fill="#0F162B" fill-opacity=".34" d="M250.55 337.996a9.56 9.56 0 0 1 5.649-1.848h5.38c0 .01-.219 1.191-.457 1.919-.239.717-.776 1.777-.776 1.777h-5.907c-2.148 0-3.889 1.768-3.889 3.96v5.746s-.935 1.111-1.62 1.717c-.687.606-1.87 1.384-1.88 1.384v-16.766zm14.4 18.089-3.5-2.11a9.56 9.56 0 0 1-5.649 1.847h-5.38c0-.01.219-1.191.457-1.919.239-.717.776-1.777.776-1.777h5.907c2.148 0 3.889-1.768 3.889-3.96v-5.746s.935-1.111 1.62-1.717c.687-.606 1.87-1.384 1.88-1.384z"/><path fill="url(#wally-43)" d="M50-126.2v.4c0 7.616-6.184 13.8-13.8 13.8h-72.4c-7.616 0-13.8-6.184-13.8-13.8v-.4c0-7.616 6.184-13.8 13.8-13.8h72.4c7.616 0 13.8 6.184 13.8 13.8" transform="matrix(.9945 0 0 1.01 256 398)"/><path fill="#0C0C16" fill-opacity=".16" d="M354.455 341.44c0 1.672-1.336 3.03-2.983 3.03h-39.78c-1.647 0-2.984-1.358-2.984-3.03s1.337-3.03 2.984-3.03h39.78c1.647 0 2.983 1.358 2.983 3.03m-151.163 0c0 1.672-1.337 3.03-2.984 3.03h-39.78c-1.647 0-2.983-1.358-2.983-3.03s1.336-3.03 2.983-3.03h39.78c1.647 0 2.984 1.358 2.984 3.03"/><path fill="#0C0C16" fill-opacity=".17" d="M299.758 284.88c0 .975-.78 1.768-1.74 1.768h-84.036c-.96 0-1.74-.793-1.74-1.768s.78-1.767 1.74-1.767h84.036c.96 0 1.74.792 1.74 1.767"/><path fill="#0C0C16" fill-opacity=".22" d="M343.516 275.285c3.019 0 5.47 2.49 5.47 5.555 0 3.066-2.451 5.555-5.47 5.555s-5.47-2.49-5.47-5.555c0-3.066 2.451-5.555 5.47-5.555m-175.032 0c3.019 0 5.47 2.49 5.47 5.555 0 3.066-2.451 5.555-5.47 5.555s-5.47-2.49-5.47-5.555c0-3.066 2.451-5.555 5.47-5.555"/></g><g style="display:block"><path fill="url(#wally-31)" d="M22-126.8v5.6c0 7.285-5.915 13.2-13.2 13.2H-8.8c-7.285 0-13.2-5.915-13.2-13.2v-5.6c0-7.285 5.915-13.2 13.2-13.2H8.8c7.285 0 13.2 5.915 13.2 13.2" transform="translate(256 398)"/><path fill="url(#wally-32)" d="M17-163.12v14.24C17-142.875 12.125-138 6.12-138H-6.12c-6.005 0-10.88-4.875-10.88-10.88v-14.24c0-6.005 4.875-10.88 10.88-10.88H6.12c6.005 0 10.88 4.875 10.88 10.88" transform="translate(256 398)"/><path fill="#0C0C16" fill-opacity=".18" d="M274 260a1.5 1.5 0 0 1-1.5 1.5h-33a1.5 1.5 0 0 1 0-3h33a1.5 1.5 0 0 1 1.5 1.5m-5-34a1.5 1.5 0 0 1-1.5 1.5h-23a1.5 1.5 0 0 1 0-3h23a1.5 1.5 0 0 1 1.5 1.5"/><path fill="url(#wally-33)" d="M12-218.36v106.72c0 4.768-3.872 8.64-8.64 8.64h-6.72c-4.768 0-8.64-3.872-8.64-8.64v-106.72c0-4.768 3.872-8.64 8.64-8.64h6.72c4.768 0 8.64 3.872 8.64 8.64" transform="translate(256 398)"/><path fill="url(#wally-34)" d="M57-222c0 6.623-5.377 12-12 12h-90c-6.623 0-12-5.377-12-12s5.377-12 12-12h90c6.623 0 12 5.377 12 12" transform="translate(256 398)"/><path fill="#0C0C16" fill-opacity=".3" d="M256 169.5c3.587 0 6.5 2.913 6.5 6.5s-2.913 6.5-6.5 6.5a6.503 6.503 0 0 1-6.5-6.5c0-3.587 2.913-6.5 6.5-6.5"/><path fill="url(#wally-35)" d="M79-281.5c32.838 0 59.5 26.662 59.5 59.5s-26.662 59.5-59.5 59.5-59.5-26.662-59.5-59.5 26.662-59.5 59.5-59.5m-158 0c32.838 0 59.5 26.662 59.5 59.5s-26.662 59.5-59.5 59.5-59.5-26.662-59.5-59.5 26.662-59.5 59.5-59.5" transform="translate(256 398)"/><path fill="none" stroke="#0C0C16" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".22" stroke-width="2.5" d="M335 126c27.595 0 50 22.405 50 50s-22.405 50-50 50-50-22.405-50-50 22.405-50 50-50m-158 0c27.595 0 50 22.405 50 50s-22.405 50-50 50-50-22.405-50-50 22.405-50 50-50"/><path fill="#0C0C16" fill-opacity=".26" d="M373.71 133.79c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m-158 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m80.58 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m-158 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m158 77.42c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m-158 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m235.42 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5m-158 0c1.932 0 3.5 1.568 3.5 3.5s-1.568 3.5-3.5 3.5a3.5 3.5 0 0 1-3.5-3.5c0-1.932 1.568-3.5 3.5-3.5"/><path fill="#0C0C16" d="M335 137c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39m-158 0c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39"/><path fill="none" stroke="#FFF" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".13" stroke-width="3" d="M335 137c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39m-158 0c21.524 0 39 17.476 39 39s-17.476 39-39 39-39-17.476-39-39 17.476-39 39-39"/></g><g mask="url(#wally-11_1)" style="display:block"><path fill="none" d="m355.779 125.856.145 99.997-199.994.291-.145-99.997z"/><path fill="url(#wally-17)" d="M0-59.135c32.637 0 59.135 26.498 59.135 59.135S32.637 59.135 0 59.135-59.135 32.637-59.135 0-32.637-59.135 0-59.135" mask="url(#wally-19)" transform="translate(334.854 176.811)scale(.9583)"/><path fill="#FFF" fill-opacity=".82" d="M318.539 155.75a6.865 6.865 0 0 1 7.442 6.226 6.865 6.865 0 0 1-6.226 7.442 6.865 6.865 0 0 1-7.443-6.226 6.865 6.865 0 0 1 6.227-7.443"/><path fill="#FF6800" d="m356.649 175.687.003 2.185c.017 12.027-9.733 21.806-21.76 21.823h-.01c-12.027.018-21.806-9.733-21.824-21.76l-.003-2.185c-.017-12.027 9.733-21.806 21.76-21.823h.01c12.027-.018 21.806 9.733 21.824 21.76"/><path fill="url(#wally-20)" d="M0-59.135c32.637 0 59.135 26.498 59.135 59.135S32.637 59.135 0 59.135-59.135 32.637-59.135 0-32.637-59.135 0-59.135" mask="url(#wally-22)" transform="rotate(-.085 119820.225 -121419.27)scale(.9259)"/><path fill="#FFF" fill-opacity=".82" d="M166.688 150.615a6.633 6.633 0 0 1 5.456 7.625 6.633 6.633 0 0 1-7.625 5.456 6.633 6.633 0 0 1-5.455-7.625 6.633 6.633 0 0 1 7.624-5.456"/><path fill="#FF6800" d="m197.94 174.097-.09 2.109c-.49 11.61-10.314 20.638-21.924 20.148h-.009c-11.61-.49-20.638-10.314-20.148-21.924l.089-2.11c.49-11.61 10.314-20.638 21.924-20.148h.009c11.61.49 20.638 10.315 20.148 21.925"/><path fill="url(#wally-23)" d="M67.39-117.94V0H-67.39v-117.94z" transform="rotate(-.085 94857.576 -229953.915)scale(.9259)"/><path fill="url(#wally-24)" d="M67.39-117.94V0H-67.39v-117.94z" transform="rotate(2.417 -3118.133 4258.732)scale(.9259)"/></g><g mask="url(#wally-3_1)" style="display:block"><path fill="none" d="M182.084-15.999V84H-17.91V-16z"/><path fill="#FFF" fill-opacity=".08" d="M276.526 337.695h51.85l-18.518 129.626h-51.85z"/></g></g></svg>diff --git a/web/src/components/svg-icon.tsx b/web/src/components/svg-icon.tsxindex 105dcee343..38a2a31e45 100644--- a/web/src/components/svg-icon.tsx+++ b/web/src/components/svg-icon.tsx@@ -127,6 +127,7 @@ const svgIcons = [LLMFactory.Obscurify,LLMFactory.HostingerRouter,LLMFactory.Cheapaimodel,+ LLMFactory.Wally,];export const LlmIcon = ({diff --git a/web/src/constants/llm.ts b/web/src/constants/llm.tsindex 673e4dcf61..810b17dbef 100644--- a/web/src/constants/llm.ts+++ b/web/src/constants/llm.ts@@ -123,6 +123,7 @@ export enum LLMFactory {Cheapaimodel = 'cheapaimodel',SystemOne = 'SystemOne',HostingerRouter = 'Hostinger Router',+ Wally = 'Wally',}// Please lowercase the file name@@ -227,6 +228,7 @@ export const IconMap = {[LLMFactory.Obscurify]: 'obscurify',[LLMFactory.HostingerRouter]: 'hostinger-router',[LLMFactory.Cheapaimodel]: 'cheapaimodel',+ [LLMFactory.Wally]: 'wally',};/**@@ -282,6 +284,7 @@ export const APIMapUrl = {[LLMFactory.HostingerRouter]: 'https://hpanel.hostinger.com/ai-router',[LLMFactory.Cheapaimodel]:'https://console.cheapaimodel.ai/keys?utm_source=ragflow',+ [LLMFactory.Wally]: 'https://console.runanywhere.ai',[LLMFactory.MWS]:'https://mws.ru/docs/cloud-platform/gpt/general/inference-text.html',[LLMFactory.Anthropic]: 'https://console.anthropic.com/settings/keys',