Class OpenAIIntegrationService

java.lang.Object
com.bluebell.greenhouse.sol.services.openai.OpenAIIntegrationService
All Implemented Interfaces:
GenericIntegrationService

@Service public class OpenAIIntegrationService extends Object implements GenericIntegrationService
OpenAI API implementation of GenericIntegrationService for symbol enrichment.
Version:
2.0.2
Author:
Stephen Prizio
  • Constructor Details

    • OpenAIIntegrationService

      @Autowired public OpenAIIntegrationService(OpenAIIntegrationClient openAIIntegrationClient, OpenAIResponseTranslator openAIResponseTranslator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, io.github.cdimascio.dotenv.Dotenv dotenv)
      Creates a new integration service.
      Parameters:
      openAIIntegrationClient - integration client
      openAIResponseTranslator - raw response translator
      objectMapper - ObjectMapper
      dotenv - Dotenv
    • OpenAIIntegrationService

      public OpenAIIntegrationService(OpenAIIntegrationClient openAIIntegrationClient, OpenAIResponseTranslator openAIResponseTranslator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String responsesUrl, String apiKey, String model)
      Creates a new integration service with explicit configuration values.
      Parameters:
      openAIIntegrationClient - integration client
      openAIResponseTranslator - raw response translator
      objectMapper - ObjectMapper
      responsesUrl - responses url
      apiKey - api key
      model - model
    • OpenAIIntegrationService

      public OpenAIIntegrationService(OpenAIIntegrationClient openAIIntegrationClient, OpenAIResponseTranslator openAIResponseTranslator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String responsesUrl, String apiKey, String model, boolean enabled)
      Creates a new integration service with explicit configuration values.
      Parameters:
      openAIIntegrationClient - integration client
      openAIResponseTranslator - raw response translator
      objectMapper - ObjectMapper
      responsesUrl - responses url
      apiKey - api key
      model - model
      enabled - true when outbound OpenAI calls are enabled
  • Method Details