mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-11 21:41:36 +00:00
chore: generate
This commit is contained in:
parent
fa623964a2
commit
1a76799fd8
1 changed files with 6 additions and 4 deletions
|
|
@ -882,9 +882,9 @@ export const SessionRoutes = lazy(() =>
|
|||
const msg = await runRequest(
|
||||
"SessionRoutes.prompt",
|
||||
c,
|
||||
SessionPrompt.Service.use((svc) =>
|
||||
svc.prompt({ ...body, sessionID } as unknown as SessionPrompt.PromptInput),
|
||||
),
|
||||
SessionPrompt.Service.use((svc) =>
|
||||
svc.prompt({ ...body, sessionID } as unknown as SessionPrompt.PromptInput),
|
||||
),
|
||||
)
|
||||
void stream.write(JSON.stringify(msg))
|
||||
})
|
||||
|
|
@ -917,7 +917,9 @@ export const SessionRoutes = lazy(() =>
|
|||
void runRequest(
|
||||
"SessionRoutes.prompt_async",
|
||||
c,
|
||||
SessionPrompt.Service.use((svc) => svc.prompt({ ...body, sessionID } as unknown as SessionPrompt.PromptInput)),
|
||||
SessionPrompt.Service.use((svc) =>
|
||||
svc.prompt({ ...body, sessionID } as unknown as SessionPrompt.PromptInput),
|
||||
),
|
||||
).catch((err) => {
|
||||
log.error("prompt_async failed", { sessionID, error: err })
|
||||
void Bus.publish(Session.Event.Error, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue