@AZucodegpt转openai (typescript版) deno发布. 中发帖

https://linux.do/t/topic/705417 
https://linux.do/t/topic/687280
感谢两位的文章, 我用AI转成了ts版, 发布到了deno上了, 测试可行
并加入了模型, 方便在cherry studio 管理模型.
源码: codegpt2api/main.ts 我传到了github上了
// main.ts

// --- 全局配置 ---
// 重要提示:在生产环境中,请务必使用 Deno.env.get() 从环境变量中读取敏感信息!
// 本地测试时,你可以直接在此处设置,或使用 .env 文件。

// 上游 CodeGPT 服务的 API 地址
const CODEGPT_API_URL = Deno.env.get("CODEGPT_API_URL") || "https://api.codegpt.co/api/v...