Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Failed to deserialize the JSON body into the target type: messages[1]: missing field content at line 8 column 5 #40

Closed
2 tasks done
MR-YANZE opened this issue Feb 24, 2025 · 1 comment
Labels
invalid This doesn't seem right question Further information is requested

Comments

@MR-YANZE
Copy link

您的问题

根据官方文档操作下来,报标题的错误

版本及代码如下

SpringBoot:3.4.2
JDK:17

Image

Image

Image

具体报错信息如下:

版本信息

1.4.3

补充信息

提问前确认

  • 我已经搜索过现有的 issues,但没有找到答案
  • 我已经阅读过文档
@MR-YANZE MR-YANZE added the question Further information is requested label Feb 24, 2025
@github-actions github-actions bot added the invalid This doesn't seem right label Feb 24, 2025
@MR-YANZE
Copy link
Author

具体报错信息:

2025-02-24T10:54:59.228+08:00 ERROR 25180 --- [ai_demo] [nio-8008-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] threw exception

io.github.pigmesh.ai.deepseek.core.OpenAiHttpException: Failed to deserialize the JSON body into the target type: messages[1]: missing field content at line 8 column 5
at io.github.pigmesh.ai.deepseek.core.Utils.toException(Utils.java:19) ~[deepseek4j-core-1.4.3.jar:na]
at io.github.pigmesh.ai.deepseek.core.StreamingRequestExecutor$2.onFailure(StreamingRequestExecutor.java:207) ~[deepseek4j-core-1.4.3.jar:na]
at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.kt:52) ~[okhttp-sse-4.12.0.jar:na]
at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.kt:46) ~[okhttp-sse-4.12.0.jar:na]
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) ~[okhttp-4.9.3.jar:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:842) ~[na:na]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant