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

Potential issue with using GPT4ALL (model Llama 3B Instruct) #399

Closed
jungwyou opened this issue Dec 16, 2024 · 0 comments
Closed

Potential issue with using GPT4ALL (model Llama 3B Instruct) #399

jungwyou opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jungwyou
Copy link

When I tried out the particular sequence below, it failed with an exception. What I did was:

  • Right click on root folder of this project, and select "Add directory to prompt context"
  • Open up a class, and submit "/test"
Error occurred while processing chat message

java.util.concurrent.CompletionException: com.devoxx.genie.service.exception.ProviderUnavailableException: dev.ai4j.openai4j.OpenAiHttpException: {"error":{"code":null,"message":"Invalid 'messages[5]': unrecognized key: 'name'","param":null,"type":"invalid_request_error"}}
      at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
      at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
      at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
      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)
Caused by: com.devoxx.genie.service.exception.ProviderUnavailableException: dev.ai4j.openai4j.OpenAiHttpException: {"error":{"code":null,"message":"Invalid 'messages[5]': unrecognized key: 'name'","param":null,"type":"invalid_request_error"}}
      at com.devoxx.genie.service.PromptExecutionService.processChatMessage(PromptExecutionService.java:130)
      at com.devoxx.genie.service.PromptExecutionService.lambda$executeQuery$0(PromptExecutionService.java:78)
      at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
      ... 3 more
@stephanj stephanj self-assigned this Dec 17, 2024
@stephanj stephanj added the bug Something isn't working label Dec 17, 2024
stephanj added a commit that referenced this issue Dec 17, 2024
Fix #399 Use TextContent for creation of ChatMessages + Corrected log…
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