mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
unify model selection
This commit is contained in:
+4
-1
@@ -18,13 +18,15 @@ export class ApiClient {
|
||||
tag: string
|
||||
metadata: Metadata
|
||||
state: AgentState | null
|
||||
model?: string
|
||||
}): Promise<Session> {
|
||||
const response = await axios.post<CreateSessionResponse>(
|
||||
`${configuration.apiUrl}/cli/sessions`,
|
||||
{
|
||||
tag: opts.tag,
|
||||
metadata: opts.metadata,
|
||||
agentState: opts.state
|
||||
agentState: opts.state,
|
||||
model: opts.model
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
@@ -69,6 +71,7 @@ export class ApiClient {
|
||||
thinking: raw.thinking,
|
||||
thinkingAt: raw.thinkingAt,
|
||||
todos: raw.todos,
|
||||
model: raw.model,
|
||||
permissionMode: raw.permissionMode,
|
||||
modelMode: raw.modelMode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user