GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(gui): narrow web-search sidecar backends · lidge-jun/opencodex@2c854b8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gui/src/pages
    • dashboard-shared.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gui/src/pages/dashboard-shared.ts‎

Copy file name to clipboardExpand all lines: gui/src/pages/dashboard-shared.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ export interface VisionModelOption { value: string; label: string; backend: Side
7676
export interface WebSearchModelOption {
7777
value: string;
7878
label: string;
79-
backend: SidecarBackend;
79+
backend: WebSearchBackend;
8080
model: string;
8181
authSlot?: boolean;
8282
}
8383
export interface WebSearchPickerOption {
8484
value: string;
8585
label: string;
86-
backend?: SidecarBackend;
86+
backend?: WebSearchBackend;
8787
model?: string;
8888
}
8989
export interface SidecarData {
@@ -309,7 +309,7 @@ export function webSearchModelOptionsForPicker(
309309
serverOptions: WebSearchModelOption[] | undefined,
310310
models: ModelInfo[],
311311
current: string | undefined,
312-
currentBackend?: SidecarBackend,
312+
currentBackend?: WebSearchBackend,
313313
): WebSearchPickerOption[] {
314314
if (serverOptions === undefined) {
315315
const legacy: WebSearchPickerOption[] = sidecarModelOptions(models);
@@ -411,10 +411,11 @@ export function webSearchSidecarSelectionForModel(
411411
models: ModelInfo[],
412412
options: WebSearchPickerOption[],
413413
modelId: string,
414-
): { backend: SidecarBackend; model: string } {
414+
): { backend: WebSearchBackend; model: string } {
415415
const option = options.find(entry => entry.value === modelId);
416+
const inferred = sidecarBackendForModel(models, modelId);
416417
return {
417-
backend: option?.backend ?? sidecarBackendForModel(models, modelId),
418+
backend: option?.backend ?? (inferred === "anthropic" ? "anthropic" : "openai"),
418419
model: option?.model ?? modelId,
419420
};
420421
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.