fix: resolve apiProxy via ctx.get for /model (v0.3.2)
Cordis throws on ctx.apiProxy without inject; use ctx.get and declare apiProxy inject so catalog and model APIs work under dsh web. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-1
@@ -432,7 +432,8 @@ export class TelegramBridge {
|
||||
await this.client.sendMessage(chatId, body, undefined, keyboard)
|
||||
} catch (err) {
|
||||
this.ctx.logger.warn(`dsh-telegram-channel: /model failed: ${this.redact(err)}`)
|
||||
await this.client.sendMessage(chatId, MSG.MODEL_UNAVAILABLE)
|
||||
const detail = err instanceof Error ? err.message : String(err)
|
||||
await this.client.sendMessage(chatId, MSG.MODEL_UNAVAILABLE(detail))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user