provider-cleanup
Dax Raad 2025-12-03 19:03:14 -05:00
parent bbbffbf928
commit 19c3b25bea
2 changed files with 4 additions and 3 deletions

View File

@ -336,9 +336,10 @@ export namespace SessionProcessor {
continue
}
}
} catch (e) {
} catch (e: any) {
log.error("process", {
error: e,
stack: JSON.stringify(e.stack),
})
const error = MessageV2.fromError(e, { providerID: input.sessionID })
const retry = SessionRetry.retryable(error)

View File

@ -590,8 +590,8 @@ export namespace SessionPrompt {
{
async transformParams(args) {
if (args.type === "stream") {
// @ts-expect-error
args.params.prompt = ProviderTransform.message(args.params.prompt, model.providerID, model.info)
// @ts-expect-error - prompt types are compatible at runtime
args.params.prompt = ProviderTransform.message(args.params.prompt, model)
}
// Transform tool schemas for provider compatibility
if (args.params.tools && Array.isArray(args.params.tools)) {