Package io.quarkiverse.langchain4j.openai
package io.quarkiverse.langchain4j.openai
-
ClassDescriptionThis Microprofile REST client is used as the building block of all the API calls to OpenAI.Ensures that the terminal event sent by OpenAI is not processed (as it is not a valid json event)Introduce a custom logger as the stock one logs at the DEBUG level by default...We need a custom version of the Jackson provider because reading SSE values does not work properly with
@ClientObjectMapper
due to the lack of a complete context in those requestsThis method validates that the response is not empty, which happens when the API returns an error objectThe point of this is to properly set thestream
value of the request so users don't have to remember to set it manuallyImplements feature set ofOpenAiClient
using Quarkus functionality