feat(app): extract prompt state and add composer model selection (#36227)
This commit is contained in:
parent
d0ba538924
commit
8a03fc265b
19 changed files with 730 additions and 294 deletions
|
|
@ -16,6 +16,9 @@ export function createTabMemory(owner: Owner | null) {
|
|||
}
|
||||
|
||||
return {
|
||||
get<T>(key: string, name: string) {
|
||||
return entries.get(key)?.get(name)?.value as T | undefined
|
||||
},
|
||||
ensure<T>(key: string, name: string, init: () => T) {
|
||||
const state = entries.get(key) ?? new Map<string, Entry>()
|
||||
if (!entries.has(key)) entries.set(key, state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue