cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

ChatGPT是否可以接入第三方的API

Open guugg opened this issue 1 year ago • 4 comments

Is your any problem? Please describe. 不是所有人都可以连上官方的,更多的是通过第三方的api

Additional context

我在cherry-markdown.js文件中修改exports.BASE_PATH = "https://api.openai.com/v1".replace(/\/+$/, "");中的连接,是可以的,可以让用户自定义选择吗? 比如:

  openai: {
    apiKey: '***', // apiKey
    // proxy: {
    //   host: '127.0.0.1',
    //   port: '7890',
    // }, // http & https代理配置
   apilink: 'https://github.com/',
    ignoreError: false, // 是否忽略请求失败,默认忽略 
  },

guugg avatar Sep 12 '23 01:09 guugg

感谢反馈,我们支持下~

sunsonliu avatar Sep 12 '23 02:09 sunsonliu

文章连续对话有点费tokens,默认读取了整个文章。

  • 添加可选模型

guugg avatar Sep 12 '23 02:09 guugg

请问完成好chatGPT的配置后如何使用呢: // chatGpt的openai配置 openai: { apiKey: 'xxx', // apiKey // proxy: { // host: '127.0.0.1', // port: '7890', // }, // http & https代理配置 apilink: 'https://github.com/', ignoreError: false, // 是否忽略请求失败,默认忽略 }

yangzhenyu322 avatar Oct 15 '23 08:10 yangzhenyu322

请问完成好chatGPT的配置后如何使用呢: // chatGpt的openai配置 openai: { apiKey: 'xxx', // apiKey // proxy: { // host: '127.0.0.1', // port: '7890', // }, // http & https代理配置 apilink: 'https://github.com/', ignoreError: false, // 是否忽略请求失败,默认忽略 }

https://github.com/Tencent/cherry-markdown/wiki/%E5%A6%82%E4%BD%95%E6%8E%A5%E5%85%A5chatGPT%E5%AE%9E%E7%8E%B0%E7%BB%AD%E5%86%99%E3%80%81%E6%80%BB%E7%BB%93%E7%AD%89%E8%83%BD%E5%8A%9B 可以参考这篇wiki哈

sunsonliu avatar Oct 15 '23 16:10 sunsonliu