fix(app): model sticks to session
This commit is contained in:
parent
73c9b685a7
commit
ba1edea0ab
6 changed files with 176 additions and 8 deletions
|
|
@ -199,6 +199,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|||
parts: Part[]
|
||||
agent: string
|
||||
model: { providerID: string; modelID: string }
|
||||
variant?: string
|
||||
}) {
|
||||
const message: Message = {
|
||||
id: input.messageID,
|
||||
|
|
@ -207,6 +208,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|||
time: { created: Date.now() },
|
||||
agent: input.agent,
|
||||
model: input.model,
|
||||
variant: input.variant,
|
||||
}
|
||||
const [, setStore] = target()
|
||||
setOptimisticAdd(setStore as (...args: unknown[]) => void, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue