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

  • 思源笔记

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

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

    26736 引用 • 111380 回帖 • 2 关注
  • Q&A

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

    10323 引用 • 46868 回帖 • 61 关注

相关帖子

欢迎来到这里!

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

注册 关于
请输入回帖内容 ...
  • 截图看看 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 回复
  • 88250

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

    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

请输入回帖内容 ...

推荐标签 标签

  • golang

    Go 语言是 Google 推出的一种全新的编程语言,可以在不损失应用程序性能的情况下降低代码的复杂性。谷歌首席软件工程师罗布派克(Rob Pike)说:我们之所以开发 Go,是因为过去 10 多年间软件开发的难度令人沮丧。Go 是谷歌 2009 发布的第二款编程语言。

    500 引用 • 1396 回帖 • 252 关注
  • JavaScript

    JavaScript 一种动态类型、弱类型、基于原型的直译式脚本语言,内置支持类型。它的解释器被称为 JavaScript 引擎,为浏览器的一部分,广泛用于客户端的脚本语言,最早是在 HTML 网页上使用,用来给 HTML 网页增加动态功能。

    730 引用 • 1284 回帖
  • 音乐

    你听到信仰的声音了么?

    62 引用 • 512 回帖
  • FFmpeg

    FFmpeg 是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。

    23 引用 • 32 回帖 • 5 关注
  • 心情

    心是产生任何想法的源泉,心本体会陷入到对自己本体不能理解的状态中,因为心能产生任何想法,不能分出对错,不能分出自己。

    59 引用 • 369 回帖 • 2 关注
  • Spring

    Spring 是一个开源框架,是于 2003 年兴起的一个轻量级的 Java 开发框架,由 Rod Johnson 在其著作《Expert One-On-One J2EE Development and Design》中阐述的部分理念和原型衍生而来。它是为了解决企业应用开发的复杂性而创建的。框架的主要优势之一就是其分层架构,分层架构允许使用者选择使用哪一个组件,同时为 JavaEE 应用程序开发提供集成的框架。

    948 引用 • 1460 回帖 • 3 关注
  • GitLab

    GitLab 是利用 Ruby 一个开源的版本管理系统,实现一个自托管的 Git 项目仓库,可通过 Web 界面操作公开或私有项目。

    46 引用 • 72 回帖
  • 资讯

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

    56 引用 • 85 回帖 • 3 关注
  • JWT

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

    20 引用 • 15 回帖 • 26 关注
  • AWS
    11 引用 • 28 回帖 • 3 关注
  • 学习

    “梦想从学习开始,事业从实践起步” —— 习近平

    173 引用 • 541 回帖
  • Office

    Office 现已更名为 Microsoft 365. Microsoft 365 将高级 Office 应用(如 Word、Excel 和 PowerPoint)与 1 TB 的 OneDrive 云存储空间、高级安全性等结合在一起,可帮助你在任何设备上完成操作。

    5 引用 • 34 回帖
  • 生活

    生活是指人类生存过程中的各项活动的总和,范畴较广,一般指为幸福的意义而存在。生活实际上是对人生的一种诠释。生活包括人类在社会中与自己息息相关的日常活动和心理影射。

    230 引用 • 1432 回帖
  • JetBrains

    JetBrains 是一家捷克的软件开发公司,该公司位于捷克的布拉格,并在俄国的圣彼得堡及美国麻州波士顿都设有办公室,该公司最为人所熟知的产品是 Java 编程语言开发撰写时所用的集成开发环境:IntelliJ IDEA

    18 引用 • 54 回帖 • 1 关注
  • Mac

    Mac 是苹果公司自 1984 年起以“Macintosh”开始开发的个人消费型计算机,如:iMac、Mac mini、Macbook Air、Macbook Pro、Macbook、Mac Pro 等计算机。

    167 引用 • 597 回帖
  • Gitea

    Gitea 是一个开源社区驱动的轻量级代码托管解决方案,后端采用 Go 编写,采用 MIT 许可证。

    5 引用 • 16 回帖 • 2 关注
  • WordPress

    WordPress 是一个使用 PHP 语言开发的博客平台,用户可以在支持 PHP 和 MySQL 数据库的服务器上架设自己的博客。也可以把 WordPress 当作一个内容管理系统(CMS)来使用。WordPress 是一个免费的开源项目,在 GNU 通用公共许可证(GPLv2)下授权发布。

    46 引用 • 114 回帖 • 159 关注
  • 链滴

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

    记录生活,连接点滴

    187 引用 • 3914 回帖
  • Vditor

    Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。它使用 TypeScript 实现,支持原生 JavaScript、Vue、React 和 Angular。

    378 引用 • 1867 回帖 • 2 关注
  • 书籍

    宋真宗赵恒曾经说过:“书中自有黄金屋,书中自有颜如玉。”

    84 引用 • 414 回帖
  • Angular

    AngularAngularJS 的新版本。

    26 引用 • 66 回帖 • 563 关注
  • 新人

    让我们欢迎这对新人。哦,不好意思说错了,让我们欢迎这位新人!
    新手上路,请谨慎驾驶!

    52 引用 • 228 回帖
  • 域名

    域名(Domain Name),简称域名、网域,是由一串用点分隔的名字组成的 Internet 上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位(有时也指地理位置)。

    43 引用 • 208 回帖 • 1 关注
  • SQLServer

    SQL Server 是由 [微软] 开发和推广的关系数据库管理系统(DBMS),它最初是由 微软、Sybase 和 Ashton-Tate 三家公司共同开发的,并于 1988 年推出了第一个 OS/2 版本。

    21 引用 • 31 回帖
  • Typecho

    Typecho 是一款博客程序,它在 GPLv2 许可证下发行,基于 PHP 构建,可以运行在各种平台上,支持多种数据库(MySQL、PostgreSQL、SQLite)。

    12 引用 • 67 回帖 • 447 关注
  • B3log

    B3log 是一个开源组织,名字来源于“Bulletin Board Blog”缩写,目标是将独立博客与论坛结合,形成一种新的网络社区体验,详细请看 B3log 构思。目前 B3log 已经开源了多款产品:SymSoloVditor思源笔记

    1062 引用 • 3455 回帖 • 148 关注
  • OnlyOffice
    4 引用 • 18 关注