fix: adapt model enhancements for DSH 0.1.5

This commit is contained in:
2026-09-11 21:45:40 +08:00
parent b9e422ad30
commit 77304500b1
19 changed files with 1583 additions and 1525 deletions
+175 -780
View File
File diff suppressed because it is too large Load Diff
-23
View File
@@ -1,23 +0,0 @@
import React from 'react';
export interface CodexModelSelectProps {
directory: {
subscribe: (listener: () => void) => () => void;
getSnapshot: () => any;
};
load: () => void;
select: (selection: {
provider: string;
model: string;
reasoningEffort?: string;
}) => Promise<boolean>;
available: boolean;
locked?: boolean;
}
export declare function CodexModelSelect(props: CodexModelSelectProps): React.DetailedReactHTMLElement<{
ref: React.MutableRefObject<HTMLDivElement>;
style: {
position: "relative";
display: "inline-flex";
alignItems: "center";
};
}, HTMLDivElement>;
+2
View File
@@ -21,5 +21,7 @@ export interface DevModelInfo {
}
export declare const THINKING_LEVELS_ALL: string[];
export declare function fetchAllModelsDev(): Promise<DevModelInfo[]>;
export declare function sanitizePositiveInt(val: unknown): number | undefined;
export declare function mergeModelCapabilities(m: any, matched?: DevModelInfo | null): any;
export declare function normModelKey(key: string): string;
export declare function findDevModel(queryId: string, allList: DevModelInfo[]): DevModelInfo | null;
+1 -11
View File
File diff suppressed because one or more lines are too long