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

choices()" is null #690

Open
leo07051004 opened this issue May 7, 2024 · 0 comments
Open

choices()" is null #690

leo07051004 opened this issue May 7, 2024 · 0 comments

Comments

@leo07051004
Copy link

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "org.springframework.ai.openai.api.OpenAiApi$ChatCompletion.choices()" is null
at org.springframework.ai.openai.OpenAiChatClient.lambda$call$1(OpenAiChatClient.java:153)
at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:335)
at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:211)
at org.springframework.ai.openai.OpenAiChatClient.call(OpenAiChatClient.java:141)

org.springframework.ai spring-ai-openai-spring-boot-starter 1.0.0-SNAPSHOT
JoeHitHard pushed a commit to JoeHitHard/spring-ai that referenced this issue May 8, 2024
Signed-off-by: JoeHitHard <josephmeghanath@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant