mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-17 20:31:47 +02:00
ui : skip hub base model lookups for external backends
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
import { modelsStore } from '$lib/stores';
|
import { modelsStore } from '$lib/stores';
|
||||||
import type { ModelOption } from '$lib/types/models';
|
import type { ModelOption } from '$lib/types/models';
|
||||||
import { modelLoadFraction, modelLoadProgressText, orgOf } from '$lib/utils';
|
import { modelLoadFraction, modelLoadProgressText, orgOf } from '$lib/utils';
|
||||||
|
import { getBackend } from '$lib/utils/api-base';
|
||||||
|
import { getBackendCapabilities } from '$lib/utils/backend';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
option: ModelOption;
|
option: ModelOption;
|
||||||
@@ -84,6 +86,13 @@
|
|||||||
|
|
||||||
if (!showBaseModelAvatar || !orgName || tagBaseModel) return;
|
if (!showBaseModelAvatar || !orgName || tagBaseModel) return;
|
||||||
|
|
||||||
|
// external provider ids (`~openai/gpt-...`, `deepseek/deepseek-chat`) are
|
||||||
|
// not HF repos; their org is already the provider slug, so the base model
|
||||||
|
// lookup would be a missed request for every row
|
||||||
|
const backend = getBackend(option.backendId);
|
||||||
|
|
||||||
|
if (backend && !getBackendCapabilities(backend).props) return;
|
||||||
|
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
||||||
void HuggingFaceService.getBaseModel(option.model)
|
void HuggingFaceService.getBaseModel(option.model)
|
||||||
|
|||||||
Reference in New Issue
Block a user