org.llm4s.llmconnect.provider.OpenAIClient
See theOpenAIClient companion class
Factory methods for creating OpenAIClient instances.
Provides safe construction of OpenAI clients with error handling via Result type.
Attributes
-
Companion
-
class
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Creates an OpenAI client for direct OpenAI API access.
Creates an OpenAI client for direct OpenAI API access.
Value parameters
-
config
-
OpenAI configuration with API key, model, and base URL
-
metrics
-
metrics collector for observability
Attributes
-
Returns
-
Right(OpenAIClient) on success, Left(LLMError) if client creation fails
Convenience overload with noop metrics.
Convenience overload with noop metrics.
Attributes
Creates an OpenAI client for Azure OpenAI service.
Creates an OpenAI client for Azure OpenAI service.
Value parameters
-
config
-
Azure configuration with API key, model, endpoint, and API version
-
metrics
-
metrics collector for observability
Attributes
-
Returns
-
Right(OpenAIClient) on success, Left(LLMError) if client creation fails
Convenience overload with noop metrics.
Convenience overload with noop metrics.
Attributes