Auto-discover OpenCode Zen and Go models, add catalog search and pagination
Add model fetchers for OpenCode Zen (https://opencode.ai/zen/v1/models) and Go (https://opencode.ai/zen/go/v1/models) APIs. Register opencode-go as a new provider, load shared credentials from auth.json, add known models with pricing, and create default agents for both tiers on first boot. Replace the manual "Add Model" form with a search bar that filters by model name/ID and paginate the catalog at 25 models per page.
This commit is contained in:
@@ -4,10 +4,10 @@ import { credentials as credentialsTable } from "@homelab/db";
|
||||
|
||||
export type Provider =
|
||||
| "github" | "gitlab"
|
||||
| "anthropic" | "openai" | "openrouter" | "google" | "opencode-zen";
|
||||
| "anthropic" | "openai" | "openrouter" | "google" | "opencode-zen" | "opencode-go";
|
||||
|
||||
export const GIT_PROVIDERS: Provider[] = ["github", "gitlab"];
|
||||
export const AI_PROVIDERS: Provider[] = ["anthropic", "openai", "openrouter", "google", "opencode-zen"];
|
||||
export const AI_PROVIDERS: Provider[] = ["anthropic", "openai", "openrouter", "google", "opencode-zen", "opencode-go"];
|
||||
|
||||
export interface Credential {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user