mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-30 09:57:38 -05:00
ui : note where qr pairing would plug in
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
@@ -145,6 +145,9 @@
|
||||
<div class="space-y-3 pt-2">
|
||||
<h3 class="text-sm font-medium">Recommended providers</h3>
|
||||
|
||||
<!-- TODO: a "pair by QR code" entry point belongs in this grid, next
|
||||
to the provider cards. -->
|
||||
|
||||
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
|
||||
{#each BACKEND_PRESETS as preset (preset.id)}
|
||||
<BackendPresetCard
|
||||
|
||||
@@ -57,8 +57,11 @@ export const BACKEND_COMPAT: Record<BackendProtocol, BackendCompat> = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Ready-made endpoints offered when adding a backend. `custom` intentionally
|
||||
* carries no URL so the user starts from an empty form.
|
||||
* Ready-made endpoints offered when adding a backend.
|
||||
*
|
||||
* TODO: pair a llama.cpp server by scanning its QR code (WebRTC transport, so a
|
||||
* hosted PWA can reach a server on the user's network), see
|
||||
* ggml-org/llama.cpp#24577.
|
||||
*/
|
||||
export const BACKEND_PRESETS: readonly BackendPreset[] = [
|
||||
{
|
||||
|
||||
Vendored
+6
-1
@@ -45,7 +45,12 @@ export interface BackendCapabilities {
|
||||
tools: boolean;
|
||||
}
|
||||
|
||||
/** One configured API endpoint. */
|
||||
/**
|
||||
* One configured API endpoint.
|
||||
*
|
||||
* TODO: a backend paired by QR code is reached over WebRTC instead of plain
|
||||
* HTTP, so it needs a transport discriminator and its peer description here.
|
||||
*/
|
||||
export interface Backend {
|
||||
/** Bearer token / API key used for this backend. */
|
||||
apiKey?: string;
|
||||
|
||||
Reference in New Issue
Block a user