Skip to content

桌面端接入 OpenAI Chat API  #7560

Closed
@88250

Description

@88250
Member

https://ld246.com/article/1677555309934

  • 配置环境变量
    • SIYUAN_OPENAI_API_KEY 指定 API Key
    • SIYUAN_OPENAI_API_TIMEOUT 指定超时时间(秒),默认为 30 秒
    • SIYUAN_OPENAI_API_PROXY 指定代理,默认为空,即不使用代理
    • SIYUAN_OPENAI_API_MAX_TOKENS 指定 tokens 数量,默认为 0,即使用模型默认值
  • / 菜单加入 AI Chat 输入框,输入的文本作为段落块插入
  • 通过 https://github.com/sashabaranov/go-gpt3 接入 OpenAI Chat API
  • 请求过程中弹出遮罩阻塞界面
  • 响应添加到输入的段落块下方

后续计划:

Activity

leolee9086

leolee9086 commented on Mar 3, 2023

@leolee9086

啊? 从未想到的展开

SineMark2020

SineMark2020 commented on Mar 3, 2023

@SineMark2020
Contributor

震惊!!! 出乎意料的进展

changed the title [-]接入 OpenAI Chat API [/-] [+]桌面端接入 OpenAI Chat API [/+] on Mar 3, 2023
added this to the backlog milestone on Mar 3, 2023
added a commit that references this issue on Mar 3, 2023
modified the milestones: backlog, 2.7.8 on Mar 3, 2023
added a commit that references this issue on Mar 3, 2023
AugustTuan

AugustTuan commented on Mar 3, 2023

@AugustTuan

卧槽,说整就整啊。
我以为要等到明年的🤣

added a commit that references this issue on Mar 3, 2023
aptexd

aptexd commented on Mar 3, 2023

@aptexd

王炸来的太快,来不及防备🤣

added a commit that references this issue on Mar 3, 2023

43 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@suqi@sunk926@lagunazeng

      Issue actions

        桌面端接入 OpenAI Chat API · Issue #7560 · siyuan-note/siyuan