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

[Bug] 连接本地大模型测试时,Numeric value (1732861633103) out of range of int #1938

Open
2 of 3 tasks
HongFive opened this issue Dec 2, 2024 · 1 comment
Open
2 of 3 tasks
Labels
bug Something isn't working

Comments

@HongFive
Copy link

HongFive commented Dec 2, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

0.9.8

What's Wrong?

与本地大模型连接测试时,报错{"code":400,"msg":"java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (1732861633103) out of range of int (-2147483648 - 2147483647)\n at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 96] (through reference chain: dev.ai4j.openai4j.chat.ChatCompletionResponse$Builder["created"])","data":null,"timestamp":1732861627784,"traceId":"supersonic_615d7b77a5be49fb805c479ebed85c86"}

What You Expected?

是不是jackson的版本太低了,该如何调整?

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@HongFive HongFive added the bug Something isn't working label Dec 2, 2024
@zzccctv
Copy link

zzccctv commented Dec 19, 2024

原因是:dev.ai4j.openai4j.chat.ChatCompletionResponse 这个类中的created 是int类型,与大模型数据返回值不兼容引起

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

2 participants