GeminiServiceFactory

io.cequence.openaiscala.gemini.service.GeminiServiceFactory$
object GeminiServiceFactory extends GeminiServiceConsts with EnvHelper

Factory for creating instances of the GeminiService and an OpenAI adapter for io.cequence.openaiscala.service.OpenAIChatCompletionService

Attributes

Graph
Supertypes
trait EnvHelper
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited classlikes

Attributes

Inherited from:
GeminiServiceConsts
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(apiKey: String, timeouts: Option[Timeouts])(implicit ec: ExecutionContext, materializer: Materializer): GeminiService
def asOpenAI(apiKey: String, timeouts: Option[Timeouts])(implicit ec: ExecutionContext, materializer: Materializer): OpenAIChatCompletionStreamedService

Create a new instance of the OpenAIChatCompletionService wrapping the SonarService

Create a new instance of the OpenAIChatCompletionService wrapping the SonarService

Attributes

apiKey

The API key to use for authentication (if not specified the GOOGLE_API_KEY env. variable will be used)

timeouts

The explicit timeouts to use for the service (optional)

Inherited methods

protected def getEnvValue(key: String): String

Attributes

Inherited from:
EnvHelper

Inherited fields

protected val coreUrl: String

Attributes

Inherited from:
GeminiServiceConsts