MCPcopy Create free account
hub / github.com/arctic-cli/interface / lastModel

Function lastModel

packages/arctic/src/session/prompt.ts:833–838  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

831 })
832
833 async function lastModel(sessionID: string) {
834 for await (const item of MessageV2.stream(sessionID)) {
835 if (item.info.role === "user" && item.info.model) return item.info.model
836 }
837 return Provider.defaultModel()
838 }
839
840 async function resolveSystemPrompt(input: {
841 system?: string

Callers 3

createUserMessageFunction · 0.85
shellFunction · 0.85
commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected