DEEPSEEK 配置好了,也充值了,但是只成功运行了一次,就报错了无法

E 2025/03/20 20:07:22 openai.go:55: create chat completion failed: error, status code: 422, status: 422 Unprocessable Entity, message: invalid character 'F' looking for beginning of value, body: Failed to deserialize the JSON body into the target type: messages[0]: missing field `content` at line 1 column 53

  • 思源笔记

    思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。

    融合块、大纲和双向链接,重构你的思维。

    24764 引用 • 101811 回帖
  • Q&A

    提问之前请先看《提问的智慧》,好的问题比好的答案更有价值。

    9384 引用 • 42764 回帖 • 112 关注

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...
  • 截图看看 AI 配置

  • siyuan100861186 1 1 赞同

    deepseek 的文档显示,422 报错是请求参数错误,可能需要检查一下这方面是不是配置错了什么

  • typfoon
    作者

    image.png

    1 回复
  • typfoon
    作者

    选中文件后右键的 AI 是可以用的,下面是让他续写,是可以的。

    image.png

    image.png

    但是用 / 的 AI 编写就会报错

    eerIMG20250321095421.jpg

    1 回复
  • typfoon
    作者

    image.png

  • 在 设置 - 关于 里导出日志上传看看

  • typfoon
    作者

    2025/03/21 01:35:12 box.go:77: auto stat [trees=2, blocks=470, dataSize=56.56 MB, assetsSize=18.92 MB]
    I 2025/03/21 01:35:12 disk.go:33: disk usage [total=423.22 GB, used=163.66 GB, free=259.56 GB]
    I 2025/03/21 03:35:12 box.go:77: auto stat [trees=2, blocks=470, dataSize=56.56 MB, assetsSize=18.92 MB]
    I 2025/03/21 03:35:12 disk.go:33: disk usage [total=423.22 GB, used=163.65 GB, free=259.57 GB]
    I 2025/03/21 05:35:12 box.go:77: auto stat [trees=2, blocks=470, dataSize=56.56 MB, assetsSize=18.92 MB]
    I 2025/03/21 05:35:12 disk.go:33: disk usage [total=423.22 GB, used=163.66 GB, free=259.57 GB]
    I 2025/03/21 07:35:12 box.go:77: auto stat [trees=2, blocks=470, dataSize=56.56 MB, assetsSize=18.92 MB]
    I 2025/03/21 07:35:12 disk.go:33: disk usage [total=423.22 GB, used=163.66 GB, free=259.56 GB]
    I 2025/03/21 09:45:48 box.go:77: auto stat [trees=2, blocks=470, dataSize=56.56 MB, assetsSize=18.92 MB]
    I 2025/03/21 09:45:48 disk.go:33: disk usage [total=423.22 GB, used=163.66 GB, free=259.56 GB]
    E 2025/03/21 09:45:52 rhy.go:50: get version info failed: invalid character '<' looking for beginning of value
    E 2025/03/21 09:53:46 openai.go:55: create chat completion failed: error, status code: 422, status: 422 Unprocessable Entity, message: invalid character 'F' looking for beginning of value, body: Failed to deserialize the JSON body into the target type: messages[0]: missing field content at line 1 column 53
    E 2025/03/21 09:54:20 openai.go:55: create chat completion failed: error, status code: 422, status: 422 Unprocessable Entity, message: invalid character 'F' looking for beginning of value, body: Failed to deserialize the JSON body into the target type: messages[0]: missing field content at line 1 column 53

    1 回复
  • 我这里刚刚测试了下可以正常工作,配置如下:

    image.png

    请发一下 /ai 编写时填入的内容,我这边测试看看。

  • 88250 1 评论

    找到问题了,下个版本解决 Issue #14347 · siyuan-note/siyuan

    赞!现在可以用 AI 编写。现在的模型非常多,SY 可以支持多个模型吗,用户在生成不同内容是选择不同的模型,现在就一个模型太局促了
    typfoon
  • typfoon
    作者

    又来新问题了,今天打开思源发现,我自己写的文档都不见了。

    image.png

    image.png

    又去查看一下 ai 的配置,变成了默认配置,我配置的是 deepseek 的,变成了 chatgpt 了

    1 回复
  • 在左上角主菜单 - 工作空间 - 新建/打开 找到你的工作空间文件夹打开

    1 回复
  • typfoon
    作者

    这个是 app log

    2025-03-22 04:04:54 app is packaged [true], command line args [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\SiYuan.exe]
    2025-03-22 04:04:54 got kernel port [53844]
    2025-03-22 04:04:54 ui version [3.1.25], booting kernel [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources\kernel\SiYuan-Kernel.exe --port 53844 --wd C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources]
    2025-03-22 04:04:54 booted kernel process [pid=14128, port=53844]
    2025-03-22 04:04:54 checking kernel version
    2025-03-22 04:04:57 got kernel version [3.1.25]
    2025-03-22 04:04:57 window stat [x=-7, y=-7, width=1166, height=686], default [x=0, y=0, width=921, height=537], old [x=-7, y=-7, width=1166, height=686], workArea [width=1152, height=672]
    2025-03-22 04:04:57 window position [x=0, y=0]
    2025-03-22 04:04:58 window.siyuan.config.keymap.general is not found
    2025-03-22 04:04:58 window.siyuan.config.keymap.editor is not found
    2025-03-22 04:04:58 update keymap
    2025-03-22 04:07:18 exited ui
    2025-03-22 04:07:35 app is packaged [true], command line args [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\SiYuan.exe]
    2025-03-22 04:07:36 got kernel port [54254]
    2025-03-22 04:07:36 ui version [3.1.25], booting kernel [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources\kernel\SiYuan-Kernel.exe --port 54254 --wd C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources]
    2025-03-22 04:07:36 booted kernel process [pid=5192, port=54254]
    2025-03-22 04:07:36 checking kernel version
    2025-03-22 04:07:36 got kernel version [3.1.25]
    2025-03-22 04:07:36 window stat [x=-7, y=-7, width=1166, height=686], default [x=0, y=0, width=921, height=537], old [x=-7, y=-7, width=1166, height=686], workArea [width=1152, height=672]
    2025-03-22 04:07:36 window position [x=0, y=0]
    2025-03-22 04:07:49 exited ui
    2025-03-22 04:07:55 app is packaged [true], command line args [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\SiYuan.exe]
    2025-03-22 04:07:56 got kernel port [54365]
    2025-03-22 04:07:56 ui version [3.1.25], booting kernel [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources\kernel\SiYuan-Kernel.exe --port 54365 --wd C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources]
    2025-03-22 04:07:56 booted kernel process [pid=26300, port=54365]
    2025-03-22 04:07:56 checking kernel version
    2025-03-22 04:07:56 got kernel version [3.1.25]
    2025-03-22 04:07:56 window stat [x=-7, y=-7, width=1166, height=686], default [x=0, y=0, width=921, height=537], old [x=-7, y=-7, width=1166, height=686], workArea [width=1152, height=672]
    2025-03-22 04:07:56 window position [x=0, y=0]
    2025-03-22 04:09:57 exited ui
    2025-03-22 04:10:02 app is packaged [true], command line args [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\SiYuan.exe]
    2025-03-22 04:10:03 got kernel port [54673]
    2025-03-22 04:10:03 ui version [3.1.25], booting kernel [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources\kernel\SiYuan-Kernel.exe --port 54673 --wd C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources]
    2025-03-22 04:10:03 booted kernel process [pid=26576, port=54673]
    2025-03-22 04:10:03 checking kernel version
    2025-03-22 04:10:03 got kernel version [3.1.25]
    2025-03-22 04:10:03 window stat [x=-7, y=-7, width=1166, height=686], default [x=0, y=0, width=921, height=537], old [x=-7, y=-7, width=1166, height=686], workArea [width=1152, height=672]
    2025-03-22 04:10:04 window position [x=0, y=0]

  • typfoon
    作者

    I 2025/03/22 12:04:56 working.go:178:


    / /\ ___ ___ //\ / /\ //
    / /:/_ / /\ //| \ :\ / /::\ \ :
    / /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
    / /:/ /::\ /
    /::\ | |:| ___ \ :\ / /://::\ ______:
    /__/:/ /:/:\ _
    /:__ ||:| //\ __:\ //:/ /:/:\ /__/::::::::
    \ :/:/
    /:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~~/
    \ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
    _
    / /:/ //:/ \ :\ \ :/:/ \ :\ \ :
    /
    /:/ _/ _/ \ ::/ \ :\ \ :
    _/ _/ _/ _/
    I 2025/03/22 12:04:56 runtime.go:87: kernel is booting:

    • ver [3.1.25]
    • arch [amd64]
    • os [Microsoft Windows 11 Enterprise]
    • pid [14128]
    • runtime mode [prod]
    • working directory [C:\Program Files\WindowsApps\89C2A984.SiYuan_3.1.25.0_x64__1qfd3tsw4ngc2\app\resources]
    • read only [false]
    • container [std]
    • database [ver=20220501]
    • workspace directory [C:\Users\wuyonghai\SiYuan]
      I 2025/03/22 12:04:56 conf.go:168: initialized language [zh_CN] based on device locale
      I 2025/03/22 12:04:56 conf.go:327: using Microsoft Store edition
      I 2025/03/22 12:04:56 runtime.go:139: use network proxy [system]
      I 2025/03/22 12:04:56 serve.go:209: kernel [pid=14128] http server [127.0.0.1:53844] is booting
      I 2025/03/22 12:04:57 blocktree.go:75: reinitialized database [C:\Users\wuyonghai\SiYuan\temp\blocktree.db]
      I 2025/03/22 12:04:57 database.go:92: the database structure is changed, rebuilding database...
      I 2025/03/22 12:04:57 database.go:109: reinitialized database [C:\Users\wuyonghai\SiYuan\temp\siyuan.db]
      I 2025/03/22 12:04:57 conf.go:874: tree/block count [0/0]
      I 2025/03/22 12:04:57 working.go:224: kernel booted
      I 2025/03/22 12:04:57 box.go:77: auto stat [trees=0, blocks=0, dataSize=36.87 kB, assetsSize=0 B]
      I 2025/03/22 12:04:57 disk.go:33: disk usage [total=157.29 GB, used=130.11 GB, free=27.19 GB]
      I 2025/03/22 12:04:57 fixedport.go:35: fixed port service [127.0.0.1:6806] is running
      I 2025/03/22 12:04:57 font.go:58: loaded system fonts [212] in [852ms]
      I 2025/03/22 12:04:59 index.go:220: rebuilt database for notebook [20210808180117-czj9bvb] in [0.07s], tree [count=70, size=1.51 MB]
      I 2025/03/22 12:04:59 index.go:290: resolved refs [38] in [80ms]
      I 2025/03/22 12:05:04 pandoc.go:186: initialized built-in pandoc [ver=3.5, bin=C:\Users\wuyonghai\SiYuan\temp\pandoc\bin\pandoc.exe]
      I 2025/03/22 12:05:04 conf.go:1136: pandoc initialized, set pandoc bin to [C:\Users\wuyonghai\SiYuan\temp\pandoc\bin\pandoc.exe]
      I 2025/03/22 12:07:17 conf.go:617: exiting kernel [force=false, setCurrentWorkspace=true, execInstallPkg=0]
      I 2025/03/22 12:07:18 database.go:1318: closed database
      I 2025/03/22 12:07:18 conf.go:1057: cleared workspace temp
      I 2025/03/22 12:07:18 sync.go:798: sync websocket closed
      I 2025/03/22 12:07:36 working.go:178:
  • typfoon
    作者

    默认的工作空间目录在哪里,我是 window 应用商店安装的

    那 AI 配置怎么会变了呢

    1 回复
  • typfoon
    作者

    感觉整个被重置了

  • 因为你这个完全不是原来的工作空间了,是新的工作空间。工作空间的位置是初次使用思源时手动指定的目录,你想想看是不是自己移动了文件夹

    我没有手动指定目录,也没有移动过文件夹,都是默认的
    typfoon
    那怎么找回我原来的工作空间呢
    typfoon
    @typfoon 看我最新的回复
    JeffreyChen
  • typfoon
    作者

    文件历史都是空的,查不到任何操作

    image.png

    1 回复
  • 全盘搜索一下这个文件:siyuan.db ,理论上应该能找到两个,分别对应现在的新工作空间和原来的旧工作空间

  • typfoon
    作者

    image.png

  • drawone

    下载一个软件,Everything,可以极速查找文件。

    下面是我电脑里面的三个思源笔记工作空间,每一个都是独立的:

    Snipaste20250322154025.png

请输入回帖内容 ...

推荐标签 标签

  • ActiveMQ

    ActiveMQ 是 Apache 旗下的一款开源消息总线系统,它完整实现了 JMS 规范,是一个企业级的消息中间件。

    19 引用 • 13 回帖 • 679 关注
  • 知乎

    知乎是网络问答社区,连接各行各业的用户。用户分享着彼此的知识、经验和见解,为中文互联网源源不断地提供多种多样的信息。

    10 引用 • 66 回帖
  • LeetCode

    LeetCode(力扣)是一个全球极客挚爱的高质量技术成长平台,想要学习和提升专业能力从这里开始,充足技术干货等你来啃,轻松拿下 Dream Offer!

    209 引用 • 72 回帖 • 1 关注
  • IPFS

    IPFS(InterPlanetary File System,星际文件系统)是永久的、去中心化保存和共享文件的方法,这是一种内容可寻址、版本化、点对点超媒体的分布式协议。请浏览 IPFS 入门笔记了解更多细节。

    21 引用 • 245 回帖 • 235 关注
  • 资讯

    资讯是用户因为及时地获得它并利用它而能够在相对短的时间内给自己带来价值的信息,资讯有时效性和地域性。

    56 引用 • 85 回帖 • 2 关注
  • Hprose

    Hprose 是一款先进的轻量级、跨语言、跨平台、无侵入式、高性能动态远程对象调用引擎库。它不仅简单易用,而且功能强大。你无需专门学习,只需看上几眼,就能用它轻松构建分布式应用系统。

    9 引用 • 17 回帖 • 617 关注
  • Electron

    Electron 基于 Chromium 和 Node.js,让你可以使用 HTML、CSS 和 JavaScript 构建应用。它是一个由 GitHub 及众多贡献者组成的活跃社区共同维护的开源项目,兼容 Mac、Windows 和 Linux,它构建的应用可在这三个操作系统上面运行。

    15 引用 • 136 回帖 • 8 关注
  • MySQL

    MySQL 是一个关系型数据库管理系统,由瑞典 MySQL AB 公司开发,目前属于 Oracle 公司。MySQL 是最流行的关系型数据库管理系统之一。

    693 引用 • 537 回帖
  • MyBatis

    MyBatis 本是 Apache 软件基金会 的一个开源项目 iBatis,2010 年这个项目由 Apache 软件基金会迁移到了 google code,并且改名为 MyBatis ,2013 年 11 月再次迁移到了 GitHub。

    173 引用 • 414 回帖 • 369 关注
  • WiFiDog

    WiFiDog 是一套开源的无线热点认证管理工具,主要功能包括:位置相关的内容递送;用户认证和授权;集中式网络监控。

    1 引用 • 7 回帖 • 608 关注
  • Anytype
    3 引用 • 31 回帖 • 11 关注
  • 旅游

    希望你我能在旅途中找到人生的下一站。

    93 引用 • 901 回帖
  • Telegram

    Telegram 是一个非盈利性、基于云端的即时消息服务。它提供了支持各大操作系统平台的开源的客户端,也提供了很多强大的 APIs 给开发者创建自己的客户端和机器人。

    5 引用 • 35 回帖
  • 链滴

    链滴是一个记录生活的地方。

    记录生活,连接点滴

    171 引用 • 3842 回帖
  • VirtualBox

    VirtualBox 是一款开源虚拟机软件,最早由德国 Innotek 公司开发,由 Sun Microsystems 公司出品的软件,使用 Qt 编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。

    10 引用 • 2 回帖 • 16 关注
  • Ruby

    Ruby 是一种开源的面向对象程序设计的服务器端脚本语言,在 20 世纪 90 年代中期由日本的松本行弘(まつもとゆきひろ/Yukihiro Matsumoto)设计并开发。在 Ruby 社区,松本也被称为马茨(Matz)。

    7 引用 • 31 回帖 • 254 关注
  • Sandbox

    如果帖子标签含有 Sandbox ,则该帖子会被视为“测试帖”,主要用于测试社区功能,排查 bug 等,该标签下内容不定期进行清理。

    426 引用 • 1250 回帖 • 597 关注
  • 工具

    子曰:“工欲善其事,必先利其器。”

    295 引用 • 750 回帖 • 1 关注
  • 倾城之链
    23 引用 • 66 回帖 • 157 关注
  • WebClipper

    Web Clipper 是一款浏览器剪藏扩展,它可以帮助你把网页内容剪藏到本地。

    3 引用 • 9 回帖 • 6 关注
  • 星云链

    星云链是一个开源公链,业内简单的将其称为区块链上的谷歌。其实它不仅仅是区块链搜索引擎,一个公链的所有功能,它基本都有,比如你可以用它来开发部署你的去中心化的 APP,你可以在上面编写智能合约,发送交易等等。3 分钟快速接入星云链 (NAS) 测试网

    3 引用 • 16 回帖
  • C

    C 语言是一门通用计算机编程语言,应用广泛。C 语言的设计目标是提供一种能以简易的方式编译、处理低级存储器、产生少量的机器码以及不需要任何运行环境支持便能运行的编程语言。

    85 引用 • 165 回帖
  • ZooKeeper

    ZooKeeper 是一个分布式的,开放源码的分布式应用程序协调服务,是 Google 的 Chubby 一个开源的实现,是 Hadoop 和 HBase 的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、域名服务、分布式同步、组服务等。

    59 引用 • 29 回帖
  • JWT

    JWT(JSON Web Token)是一种用于双方之间传递信息的简洁的、安全的表述性声明规范。JWT 作为一个开放的标准(RFC 7519),定义了一种简洁的,自包含的方法用于通信双方之间以 JSON 的形式安全的传递信息。

    20 引用 • 15 回帖 • 19 关注
  • Quicker

    Quicker 您的指尖工具箱!操作更少,收获更多!

    36 引用 • 155 回帖
  • jsoup

    jsoup 是一款 Java 的 HTML 解析器,可直接解析某个 URL 地址、HTML 文本内容。它提供了一套非常省力的 API,可通过 DOM,CSS 以及类似于 jQuery 的操作方法来取出和操作数据。

    6 引用 • 1 回帖 • 488 关注
  • Angular

    AngularAngularJS 的新版本。

    26 引用 • 66 回帖 • 542 关注