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
Attributes
-
Returns
-
Right(OpenAIClient) on success, Left(LLMError) if client creation fails
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
Attributes
-
Returns
-
Right(OpenAIClient) on success, Left(LLMError) if client creation fails