mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 01:50:58 +08:00
📝 支持应用内配置人工智能 https://github.com/siyuan-note/siyuan/issues/7714
This commit is contained in:
parent
f51de5b11e
commit
2f51a072f9
@ -5,7 +5,7 @@
|
||||
"Properties": {
|
||||
"id": "20230304000547-ibldj1z",
|
||||
"title": "Artificial Intelligence",
|
||||
"updated": "20230308213745"
|
||||
"updated": "20230324161818"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -28,12 +28,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-q8a5kbd",
|
||||
"updated": "20230308213723"
|
||||
"updated": "20230324161738"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Currently only supports text dialogue through "
|
||||
"Data": "Supports text dialogue through "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
@ -43,7 +43,7 @@
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " Chat API, only supported on the desktop."
|
||||
"Data": " Chat API."
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -70,7 +70,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-r46h6mw",
|
||||
"updated": "20230308213739"
|
||||
"updated": "20230324161818"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -114,7 +114,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-obctww8",
|
||||
"updated": "20230308213723"
|
||||
"updated": "20230324161801"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -122,217 +122,30 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-rerhr3p",
|
||||
"updated": "20230308213723"
|
||||
"updated": "20230324161801"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Configure environment variables"
|
||||
}
|
||||
]
|
||||
"Data": "Configure in "
|
||||
},
|
||||
{
|
||||
"ID": "20230308213723-pyed7a2",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20230308213723-pyed7a2",
|
||||
"updated": "20230308213723"
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "Settings"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-lakya6i",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
"Type": "NodeText",
|
||||
"Data": " - "
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-lakya6i",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-2sruo2o",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-2sruo2o",
|
||||
"updated": "20230308213723"
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "AI"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_KEY"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " specifies the API Key (required)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213723-5vfosvz",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-5vfosvz",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-cxomjan",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-cxomjan",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_TIMEOUT"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " specifies the timeout time (seconds), the default is 30 seconds (optional)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213723-fj3oskr",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-fj3oskr",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-pvngelo",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-pvngelo",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_PROXY"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " specifies the proxy, the default is empty, that is, no proxy is used (optional)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213723-objm7mx",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-objm7mx",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-x64pmnz",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-x64pmnz",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_MAX_TOKENS"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " specifies the number of tokens, the default is 0, that is, the default value of the model is used (optional)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213723-fi8mg6o",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-fi8mg6o",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213723-11ww633",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-11ww633",
|
||||
"updated": "20230308213723"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_BASE_URL"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " specifies the base address of the API server, the default is "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "https://api.openai.com/v1"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " (optional)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -349,7 +162,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-5m7aqfs",
|
||||
"updated": "20230308213730"
|
||||
"updated": "20230324161809"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -357,12 +170,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-i5y2zf5",
|
||||
"updated": "20230308213730"
|
||||
"updated": "20230324161809"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "After restarting, you can use "
|
||||
"Data": "Use "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
@ -388,7 +201,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213723-la05np0",
|
||||
"updated": "20230308213739"
|
||||
"updated": "20230324161818"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -396,12 +209,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213723-mjv4wg6",
|
||||
"updated": "20230308213739"
|
||||
"updated": "20230324161818"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "You can also perform more operations through the block menu "
|
||||
"Data": "Perform more operations through the block menu "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
|
@ -5,7 +5,7 @@
|
||||
"Properties": {
|
||||
"id": "20230303235619-ex5l63e",
|
||||
"title": "人工智能",
|
||||
"updated": "20230308213530"
|
||||
"updated": "20230324161605"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -28,12 +28,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235639-lx58u3y",
|
||||
"updated": "20230304000315"
|
||||
"updated": "20230324161449"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "目前仅支持通过 "
|
||||
"Data": "通过 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
@ -43,7 +43,7 @@
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " Chat API 实现文本对话,仅在桌面端支持。"
|
||||
"Data": " Chat API 实现文本对话。"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -70,7 +70,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235749-kurfjky",
|
||||
"updated": "20230308213454"
|
||||
"updated": "20230324161605"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -114,7 +114,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235819-0o648f9",
|
||||
"updated": "20230305102554"
|
||||
"updated": "20230324161532"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -122,216 +122,30 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235819-87dmjqq",
|
||||
"updated": "20230303235822"
|
||||
"updated": "20230324161532"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "配置环境变量"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230303235950-z00ou0r",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20230303235950-z00ou0r",
|
||||
"updated": "20230305102554"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230303235950-3rcai2b",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235950-3rcai2b",
|
||||
"updated": "20230303235950"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230303235950-4femf1q",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235950-4femf1q",
|
||||
"updated": "20230303235950"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
"Data": "在 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_KEY"
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "设置"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 API Key(必须)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230303235950-l6o3a5a",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235950-l6o3a5a",
|
||||
"updated": "20230305102554"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230303235950-zfhft7e",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235950-zfhft7e",
|
||||
"updated": "20230305102554"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
"Data": " - "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_TIMEOUT"
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "AI"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定超时时间(秒),默认为 30 秒(可选)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230303235950-ukul5sa",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235950-ukul5sa",
|
||||
"updated": "20230303235950"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230303235950-7srjdql",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235950-7srjdql",
|
||||
"updated": "20230303235950"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_PROXY"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定代理,默认为空,即不使用代理(可选)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230303235950-5y60wvh",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235950-5y60wvh",
|
||||
"updated": "20230304171349"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230303235950-ffevwk8",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235950-ffevwk8",
|
||||
"updated": "20230304171349"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_MAX_TOKENS"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 tokens 数量,默认为 0,即使用模型默认值(可选)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213215-ichxvb3",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213215-ichxvb3"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213215-uyvki9p",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213215-uyvki9p",
|
||||
"updated": "20230308213337"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_BASE_URL"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 API 服务端基础地址,默认为 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "https://api.openai.com/v1"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "(可选)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"Data": " 中进行相关配置"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -348,7 +162,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230303235958-fxi5kan",
|
||||
"updated": "20230308213418"
|
||||
"updated": "20230324161605"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -356,12 +170,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230303235958-1ksxnm3",
|
||||
"updated": "20230308213418"
|
||||
"updated": "20230324161605"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "重启后即可使用 "
|
||||
"Data": "使用 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
@ -370,7 +184,7 @@
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 唤起对话框,输入提问或者需求后确认"
|
||||
"Data": " 唤起对话框,输入提问或者需求后确认"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"Properties": {
|
||||
"id": "20230304000829-9jwu3po",
|
||||
"title": "人工智能",
|
||||
"updated": "20230308213648"
|
||||
"updated": "20230324161714"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -28,12 +28,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-td1ykoz",
|
||||
"updated": "20230308213628"
|
||||
"updated": "20230324161633"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "目前僅支持通過 "
|
||||
"Data": "支持通過 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
@ -43,7 +43,7 @@
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " Chat API 實現文本對話,僅在桌面端支持。"
|
||||
"Data": " Chat API 實現文本對話。"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -70,7 +70,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-fkt9ihv",
|
||||
"updated": "20230308213648"
|
||||
"updated": "20230324161714"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -114,7 +114,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-2bnvc4r",
|
||||
"updated": "20230308213628"
|
||||
"updated": "20230324161706"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -122,217 +122,30 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-m4d5rpm",
|
||||
"updated": "20230308213628"
|
||||
"updated": "20230324161706"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "配置環境變量"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213628-qpozqny",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20230308213628-qpozqny",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-2vi7j3h",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-2vi7j3h",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-tmkbk2e",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-tmkbk2e",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
"Data": "在 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_KEY"
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "設置"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 API Key(必須)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213628-1desi9f",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-1desi9f",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-sk97619",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-sk97619",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
"Data": " - "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_TIMEOUT"
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "AI"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定超時時間(秒),默認為 30 秒(可選)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213628-4jq7xca",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-4jq7xca",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-k0f3rx6",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-k0f3rx6",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_PROXY"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定代理,默認為空,即不使用代理(可選)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213628-hn7rn67",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-hn7rn67",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-iqb8u0o",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-iqb8u0o",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_MAX_TOKENS"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 tokens 數量,默認為 0,即使用模型默認值(可選)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20230308213628-lt8tt00",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-lt8tt00",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20230308213628-knxr1iu",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-knxr1iu",
|
||||
"updated": "20230308213628"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ""
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "SIYUAN_OPENAI_API_BASE_URL"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 指定 API 服務端基礎地址,默認為 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "code",
|
||||
"TextMarkTextContent": "https://api.openai.com/v1"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "(可選)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"Data": " 中進行相關配置"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -349,7 +162,7 @@
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20230308213628-x6hemjt",
|
||||
"updated": "20230308213642"
|
||||
"updated": "20230324161714"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
@ -357,12 +170,12 @@
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20230308213628-hqonun0",
|
||||
"updated": "20230308213642"
|
||||
"updated": "20230324161714"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "重啟後即可使用 "
|
||||
"Data": "使用 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
|
Loading…
Reference in New Issue
Block a user