File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed
tools/server/webui/src/lib
components/app/chat/ChatForm Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1212 selectModel ,
1313 selectedModelId
1414 } from ' $lib/stores/models.svelte' ;
15- import type { ModelOption } from ' $lib/stores /models.svelte ' ;
15+ import type { ModelOption } from ' $lib/types /models' ;
1616
1717 interface Props {
1818 class? : string ;
Original file line number Diff line number Diff line change 11import { ModelsService } from '$lib/services/models' ;
22import { persisted } from '$lib/stores/persisted.svelte' ;
3- import type { ApiModelDataEntry , ApiModelDetails } from '$lib/types/api' ;
43import { SELECTED_MODEL_LOCALSTORAGE_KEY } from '$lib/constants/localstorage-keys' ;
5-
6- export interface ModelOption {
7- id : string ;
8- name : string ;
9- model : string ;
10- description ?: string ;
11- capabilities : string [ ] ;
12- details ?: ApiModelDetails [ 'details' ] ;
13- meta ?: ApiModelDataEntry [ 'meta' ] ;
14- }
4+ import type { ModelOption } from '$lib/types/models' ;
155
166type PersistedModelSelection = {
177 id : string ;
Original file line number Diff line number Diff line change 1+ import type { ApiModelDataEntry , ApiModelDetails } from '$lib/types/api' ;
2+
3+ export interface ModelOption {
4+ id : string ;
5+ name : string ;
6+ model : string ;
7+ description ?: string ;
8+ capabilities : string [ ] ;
9+ details ?: ApiModelDetails [ 'details' ] ;
10+ meta ?: ApiModelDataEntry [ 'meta' ] ;
11+ }
You can’t perform that action at this time.
0 commit comments