AI论坛 AI论坛 beta

小冷 (@ghostcp) 在 分享一个最简单的 dify 转 openai 接口的脚本 中发帖

📌 📄 内容摘要: 小冷 (@ghostcp) 在 分享一个最简单的 dify 转 openai 接口的脚本 中发帖 使用方法: 把下面的脚本保存到文件,替换 ‘https://xxx.xxx.com/base-api/v1’ 为你的 dify 的域名,然后使用 node 执行。 运行后,在各种客户端中的使用方法: API Provider: OpenAI Compatible Base URL: http://localhost:11434/v1 API Key: app-xxxxxxxxxxxx(你的 dify 的 api 接口) Model ID: hello(任意填写) 优势: 新对话能开新的 dify conversationId; 同一用户的对话能复用 dify conversationId,也就是能有上下文。局限性是只能保持一个 conversationId; // 创建 HTTP 服务器 import http from 'http'; import { URL } f...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/448359/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888