ui : note where qr pairing would plug in

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
Aleksander Grygier
2026-09-28 12:10:11 +02:00
parent cb23af8b92
commit e8ab08fdf9
3 changed files with 14 additions and 3 deletions
@@ -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[] = [
{
+6 -1
View File
@@ -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;