📌 📄 内容摘要:
小黑紫一枚 (@jiu1) 在 解决Qwen chat api流式输出问题-Deno版本 中发帖
解决Qwen chat api流式输出问题 - 开发调优 - LINUX DO
代码修改于以上帖子的代码,现在适配了Deno,输出速度比CF Workers快了两倍左右
// Qwen API 配置
const QWEN_API_URL = 'https://chat.qwenlm.ai/api/chat/completions';
const QWEN_MODELS_URL = 'https://chat.qwenlm.ai/api/models';
const MAX_RETRIES = 3;
const RETRY_DELAY = 1000; // 1秒
const encoder = new TextEncoder();
const streamDecoder = new TextDecoder();
let cachedModels: string | null = nu...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/335632/1 ─────────────────────────────
📢 来源:LINUX DO