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

Custom OpenAI配置deepseek后,代码自动补全报错 #873

Open
wzlstudy opened this issue Feb 11, 2025 · 8 comments
Open

Custom OpenAI配置deepseek后,代码自动补全报错 #873

wzlstudy opened this issue Feb 11, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@wzlstudy
Copy link

wzlstudy commented Feb 11, 2025

What happened?

Custom OpenAI配置deepseek并启用后,代码自动补全报错

Relevant log output or stack trace

Unknown API response. Code: 422, Body: Failed to deserialize the JSON body into the target type: missing field `messages` at line 8 column 1

com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Failed': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 7]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2572)
	at com.fasterxml.jackson.core.JsonParser._constructReadException(JsonParser.java:2598)
	at com.fasterxml.jackson.core.JsonParser._constructReadException(JsonParser.java:2606)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:765)
	at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:3018)
	at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:2052)
	at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:780)
	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4992)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4898)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3848)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3816)
	at ee.carlrobert.llm.client.openai.completion.OpenAIChatCompletionEventSourceListener.getErrorDetails(OpenAIChatCompletionEventSourceListener.java:47)
	at ee.carlrobert.llm.completion.CompletionEventSourceListener.onFailure(CompletionEventSourceListener.java:112)
	at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.kt:52)
	at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.kt:46)
	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Steps to reproduce

Image deepseek配置如图

CodeGPT version

2.16.2-241.1

Operating System

MacOS 14

@wzlstudy wzlstudy added the bug Something isn't working label Feb 11, 2025
@wzlstudy wzlstudy changed the title Custom Api配置deepseek后,代码自动补全报错 Custom OpenAI配置deepseek后,代码自动补全报错 Feb 11, 2025
@bluetree2009
Copy link

我也遇到了同样的问题

@Fsstyle
Copy link

Fsstyle commented Feb 13, 2025

地址配错了。路径chat改成beta

@fashen97
Copy link

地址配错了。路径chat改成beta

配beta不报错但是不会补全,不知道是api响应太慢还是咋的,用codeGPT自带的可以补全

@Thinkerzhangqian
Copy link

从响应信息看,body中缺少messages参数,但是手动加上之后还是报错

@bluetree2009
Copy link

代码自动补全 还没修复好吗?

我使用的是IDEA , continue和 codeGPT都不能代码补全, 太郁闷了。

大家有什么好的插件吗?

@wzlstudy
Copy link
Author

没办法,等作者更新吧,IDEA上没找到别的好用的AI插件了

@284919275IOS
Copy link

解决了吗 这个问题

@pjyan
Copy link

pjyan commented Feb 27, 2025

hey guys,what's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants