feat(server): expose auto param in session.summarize for plugins (#5924)
This commit is contained in:
parent
a22a67b8bc
commit
6d6bc0140b
4 changed files with 9 additions and 1 deletions
|
|
@ -1054,6 +1054,7 @@ export namespace Server {
|
||||||
z.object({
|
z.object({
|
||||||
providerID: z.string(),
|
providerID: z.string(),
|
||||||
modelID: z.string(),
|
modelID: z.string(),
|
||||||
|
auto: z.boolean().optional().default(false),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
async (c) => {
|
async (c) => {
|
||||||
|
|
@ -1075,7 +1076,7 @@ export namespace Server {
|
||||||
providerID: body.providerID,
|
providerID: body.providerID,
|
||||||
modelID: body.modelID,
|
modelID: body.modelID,
|
||||||
},
|
},
|
||||||
auto: false,
|
auto: body.auto,
|
||||||
})
|
})
|
||||||
await SessionPrompt.loop(sessionID)
|
await SessionPrompt.loop(sessionID)
|
||||||
return c.json(true)
|
return c.json(true)
|
||||||
|
|
|
||||||
|
|
@ -1132,6 +1132,7 @@ export class Session extends HeyApiClient {
|
||||||
directory?: string
|
directory?: string
|
||||||
providerID?: string
|
providerID?: string
|
||||||
modelID?: string
|
modelID?: string
|
||||||
|
auto?: boolean
|
||||||
},
|
},
|
||||||
options?: Options<never, ThrowOnError>,
|
options?: Options<never, ThrowOnError>,
|
||||||
) {
|
) {
|
||||||
|
|
@ -1144,6 +1145,7 @@ export class Session extends HeyApiClient {
|
||||||
{ in: "query", key: "directory" },
|
{ in: "query", key: "directory" },
|
||||||
{ in: "body", key: "providerID" },
|
{ in: "body", key: "providerID" },
|
||||||
{ in: "body", key: "modelID" },
|
{ in: "body", key: "modelID" },
|
||||||
|
{ in: "body", key: "auto" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -2753,6 +2753,7 @@ export type SessionSummarizeData = {
|
||||||
body?: {
|
body?: {
|
||||||
providerID: string
|
providerID: string
|
||||||
modelID: string
|
modelID: string
|
||||||
|
auto?: boolean
|
||||||
}
|
}
|
||||||
path: {
|
path: {
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1804,6 +1804,10 @@
|
||||||
},
|
},
|
||||||
"modelID": {
|
"modelID": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"auto": {
|
||||||
|
"default": false,
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["providerID", "modelID"]
|
"required": ["providerID", "modelID"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue