fix some ui issue

This commit is contained in:
musistudio
2025-07-30 21:33:58 +08:00
parent aea48239f9
commit 7978f1abae
14 changed files with 83 additions and 36 deletions

View File

@@ -32,6 +32,7 @@ export interface RouterConfig {
background: string;
think: string;
longContext: string;
longContextThreshold: number;
webSearch: string;
}
@@ -123,12 +124,14 @@ export function ConfigProvider({ children }: ConfigProviderProps) {
background: typeof data.Router.background === 'string' ? data.Router.background : '',
think: typeof data.Router.think === 'string' ? data.Router.think : '',
longContext: typeof data.Router.longContext === 'string' ? data.Router.longContext : '',
longContextThreshold: typeof data.Router.longContextThreshold === 'number' ? data.Router.longContextThreshold : 60000,
webSearch: typeof data.Router.webSearch === 'string' ? data.Router.webSearch : ''
} : {
default: '',
background: '',
think: '',
longContext: '',
longContextThreshold: 60000,
webSearch: ''
}
};
@@ -153,6 +156,7 @@ export function ConfigProvider({ children }: ConfigProviderProps) {
background: '',
think: '',
longContext: '',
longContextThreshold: 60000,
webSearch: ''
}
});