Models with a namespace (containing "/") couln't be used #42

Closed
opened 2024-11-06 14:55:10 +00:00 by skobkin · 3 comments
Owner

Models with a namespace (containing "/") couln't be used.

They're fail model availability check with "Model not unavailable":

2024/11/06 17:59:46 INFO Selected models="{TextRequestModel:mannix/llama3.1-8b-lexi:q8_0 SummarizeModel:mannix/llama3.1-8b-lexi:q8_0}"
2024/11/06 17:59:46 INFO Checking models availability
2024/11/06 17:59:46 ERROR llm: Model request failed error="error, status code: 404, status: 404 Not Found, message: invalid character 'p' after top-level value, body: 404 page not found"
2024/11/06 17:59:46 ERROR Model not unavailable model=mannix/llama3.1-8b-lexi:q8_0

Most likely cause is / not being encoded as a part of the value and sent as it's a part of a URL.

Models with a namespace (containing "/") couln't be used. They're fail model availability check with "Model not unavailable": ``` 2024/11/06 17:59:46 INFO Selected models="{TextRequestModel:mannix/llama3.1-8b-lexi:q8_0 SummarizeModel:mannix/llama3.1-8b-lexi:q8_0}" 2024/11/06 17:59:46 INFO Checking models availability 2024/11/06 17:59:46 ERROR llm: Model request failed error="error, status code: 404, status: 404 Not Found, message: invalid character 'p' after top-level value, body: 404 page not found" 2024/11/06 17:59:46 ERROR Model not unavailable model=mannix/llama3.1-8b-lexi:q8_0 ``` Most likely cause is `/` not being encoded as a part of the value and sent as it's a part of a URL.
skobkin added the
bug
label 2024-11-06 14:55:10 +00:00
skobkin self-assigned this 2024-11-06 14:55:10 +00:00
Author
Owner

Simple escaping using url.QueryEscape() isn't helping though.

Still getting 404 for mannix%2Fllama3.1-8b-lexi%3Aq8_0 (mannix/llama3.1-8b-lexi:q8_0).

Even with curl:

$ curl http://localhost:11434/v1/models/mannix%2Fllama3.1-8b-lexi%3Aq8_0                                                                                                                                                                
404 page not found%

Could be Ollama problem? But how then OpenWebUI works with that? 🤔

Simple escaping using `url.QueryEscape()` isn't helping though. Still getting 404 for `mannix%2Fllama3.1-8b-lexi%3Aq8_0` (`mannix/llama3.1-8b-lexi:q8_0`). Even with curl: ```shell $ curl http://localhost:11434/v1/models/mannix%2Fllama3.1-8b-lexi%3Aq8_0 404 page not found% ``` Could be Ollama problem? But how then OpenWebUI works with that? 🤔
Author
Owner

After some investigation, I've created a bug report in Ollama: ollama/ollama#7528

After some investigation, I've created a bug report in Ollama: [ollama/ollama#7528](https://github.com/ollama/ollama/issues/7528)
Author
Owner

Fixed with a workaround (local search in model list) in a49ce5ab28.

Fixed with a workaround (local search in model list) in a49ce5ab28f8cc5f881ae829a007f5111e1711b5.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: skobkin/telegram-ollama-reply-bot#42
No description provided.