mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-29 08:12:40 +00:00
feat: track a per-tab freeModel flag in the AI agent workspace store
This commit is contained in:
@@ -48,6 +48,9 @@ export type AgentTab = {
|
||||
credits: number | null
|
||||
budget: number
|
||||
iteration: number
|
||||
// True when this conversation is running on a free/local model (AI_LOCAL_MODEL):
|
||||
// the composer shows a "free model" notice and no credits are charged.
|
||||
freeModel: boolean
|
||||
}
|
||||
|
||||
let tabSeq = 0
|
||||
@@ -65,6 +68,7 @@ function makeTab(partial?: Partial<AgentTab>): AgentTab {
|
||||
credits: null,
|
||||
budget: 20,
|
||||
iteration: 0,
|
||||
freeModel: false,
|
||||
...partial,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user