mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-29 09:27:33 -05:00
ui : strip provider tilde prefix from hub avatar urls
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
@@ -378,7 +378,9 @@ export class HuggingFaceService {
|
||||
* exist, so callers should provide a fallback.
|
||||
*/
|
||||
static getAvatarUrl(author: string): string {
|
||||
return `${HF_AVATARS_URL}${PATH_SEPARATOR}${author}`;
|
||||
// OpenRouter-style model ids prefix the provider with a tilde
|
||||
// (`~openai/gpt-...`); the avatars endpoint only resolves bare names
|
||||
return `${HF_AVATARS_URL}${PATH_SEPARATOR}${author.replace(/^~/, '')}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user