mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
regenerate OpenAPI spec and add model selection components
This commit is contained in:
1 parent
9ed292af2a
commit
17ee96d316
12 files changed
+10266
-3453
No files matched your search
@@ -48,6 +48,7 @@ export interface OpenCodeModel {
|
||||
pdf: boolean;
|
||||
};
|
||||
};
|
||||
variants?: Record<string, Record<string, unknown>>;
|
||||
}
|
||||
|
||||
export interface OpenCodeProvider {
|
||||
@@ -87,6 +88,7 @@ export interface Model {
|
||||
provider?: {
|
||||
npm: string;
|
||||
};
|
||||
variants?: Record<string, Record<string, unknown>>;
|
||||
}
|
||||
|
||||
export interface Provider {
|
||||
@@ -187,6 +189,7 @@ async function getProvidersFromOpenCodeServer(): Promise<{ providers: Provider[]
|
||||
provider: {
|
||||
npm: openCodeModel.api.npm,
|
||||
},
|
||||
variants: openCodeModel.variants,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user