Click or drag to resize

AIProviderGetAIProvider Method

Creates, initialises, and returns a provider for the given providerType.

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static IAIProvider GetAIProvider(
	ProviderType providerType,
	string endpoint,
	string key,
	string model,
	float temperature = 0f,
	int maxTokens = 0,
	float topP = 1f
)

Parameters

providerType  ProviderType
 
endpoint  String
 
key  String
 
model  String
 
temperature  Single  (Optional)
 
maxTokens  Int32  (Optional)
 
topP  Single  (Optional)
 

Return Value

IAIProvider
Exceptions
ExceptionCondition
ArgumentException Thrown when both temperature and topP are set to non-default values. Set one or the other, not both.
See Also