Google manifold doesn't allow to use LearnLM #169

Open
opened 2026-02-15 19:16:28 -05:00 by yindo · 1 comment
Owner

Originally created by @bogdanr on GitHub (Dec 12, 2024).

I have open-webui 0.4.8 with pipelines that were available at the time of the 0.4.8 release. They are all installed with Docker.
Gemini 2.0 Flash which was just released yesterday works fine but trying to use LearnLM produces this error:

Error: Invalid model name format: learnlm-1.5-pro-experimental

Docker logs doesn't show anything which I find relevant:

open-webui  | INFO:     188.25.145.71:0 - "POST /api/v1/memories/query HTTP/1.1" 200 OK
open-webui  | INFO  [open_webui.apps.openai.main] get_all_models()
pipelines   | INFO:     172.18.0.1:42978 - "GET /models HTTP/1.1" 200 OK
open-webui  | INFO  [open_webui.apps.ollama.main] get_all_models()
pipelines   | INFO:     172.18.0.1:42994 - "POST /google_genai.learnlm-1.5-pro-experimental/filter/inlet HTTP/1.1" 200 OK
pipelines   | google_genai.learnlm-1.5-pro-experimental
pipelines   | google_genai.learnlm-1.5-pro-experimental
pipelines   | INFO:     172.18.0.1:43008 - "POST /chat/completions HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/chat/completions HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
pipelines   | INFO:     172.18.0.1:43022 - "POST /google_genai.learnlm-1.5-pro-experimental/filter/outlet HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/chat/completed HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/task/title/completions HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags HTTP/1.1" 200 OK
open-webui  | Count of chats for tag 'science': 6
open-webui  | Count of chats for tag 'technology': 47
open-webui  | Count of chats for tag 'general': 12
open-webui  | INFO:     188.25.145.71:0 - "DELETE /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags/all HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "POST /api/task/tags/completions HTTP/1.1" 200 OK
open-webui  | [] physics
open-webui  | INFO:     188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
open-webui  | INFO:     188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
Originally created by @bogdanr on GitHub (Dec 12, 2024). I have open-webui 0.4.8 with pipelines that were available at the time of the 0.4.8 release. They are all installed with Docker. Gemini 2.0 Flash which was just released yesterday works fine but trying to use LearnLM produces this error: ``` Error: Invalid model name format: learnlm-1.5-pro-experimental ``` Docker logs doesn't show anything which I find relevant: ``` open-webui | INFO: 188.25.145.71:0 - "POST /api/v1/memories/query HTTP/1.1" 200 OK open-webui | INFO [open_webui.apps.openai.main] get_all_models() pipelines | INFO: 172.18.0.1:42978 - "GET /models HTTP/1.1" 200 OK open-webui | INFO [open_webui.apps.ollama.main] get_all_models() pipelines | INFO: 172.18.0.1:42994 - "POST /google_genai.learnlm-1.5-pro-experimental/filter/inlet HTTP/1.1" 200 OK pipelines | google_genai.learnlm-1.5-pro-experimental pipelines | google_genai.learnlm-1.5-pro-experimental pipelines | INFO: 172.18.0.1:43008 - "POST /chat/completions HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/chat/completions HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK pipelines | INFO: 172.18.0.1:43022 - "POST /google_genai.learnlm-1.5-pro-experimental/filter/outlet HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/chat/completed HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/task/title/completions HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags HTTP/1.1" 200 OK open-webui | Count of chats for tag 'science': 6 open-webui | Count of chats for tag 'technology': 47 open-webui | Count of chats for tag 'general': 12 open-webui | INFO: 188.25.145.71:0 - "DELETE /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags/all HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "POST /api/task/tags/completions HTTP/1.1" 200 OK open-webui | [] physics open-webui | INFO: 188.25.145.71:0 - "POST /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640/tags HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/d28a614a-1ea5-418f-9564-9fe88496e640 HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK open-webui | INFO: 188.25.145.71:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK ```
Author
Owner

@rotemdan commented on GitHub (Dec 14, 2024):

I noticed that as well.

It's because of the model ID check in lines 101-102 in google_manifold_pipeline.py:

            if not model_id.startswith("gemini-"):
                return f"Error: Invalid model name format: {model_id}"

If the check is commented out, the model works:

Screenshot_24

I can make a pull request to disable the check, I guess. It's also possible to allow learnlm- as model ID prefix, but that kind of approach would also require manually adding that for every future Google model prefix.

@rotemdan commented on GitHub (Dec 14, 2024): I noticed that as well. It's because of the model ID check in [lines 101-102 in `google_manifold_pipeline.py`](https://github.com/open-webui/pipelines/blob/1367d9575060f7c2e8abdb1c2e009862020add9a/examples/pipelines/providers/google_manifold_pipeline.py#L101): ```py if not model_id.startswith("gemini-"): return f"Error: Invalid model name format: {model_id}" ``` If the check is commented out, the model works: ![Screenshot_24](https://github.com/user-attachments/assets/e4ec23bf-ae6b-4266-943d-da95f4e2668e) I can make a pull request to disable the check, I guess. It's also possible to allow `learnlm-` as model ID prefix, but that kind of approach would also require manually adding that for every future Google model prefix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#169