Class GenericOaiConnectionConfig
java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.service.model.GenericOaiConnectionConfig
- All Implemented Interfaces:
IPromptConnectionConfig_ApiKey, IPromptConnectionConfig_ApiUrl, IPromptConnectionConfig_ConnectTimeout, IPromptConnectionConfig_Model, IPromptConnectionConfig_ReadTimeout, Serializable
public class GenericOaiConnectionConfig
extends Object
implements Serializable, IPromptConnectionConfig_ApiUrl, IPromptConnectionConfig_ApiKey, IPromptConnectionConfig_ConnectTimeout, IPromptConnectionConfig_Model, IPromptConnectionConfig_ReadTimeout
Model class for the configuration of a Generic OAI connection.
- Since:
- 8.5.0
- See Also:
-
Field Summary
Fields inherited from interface IPromptConnectionConfig_ApiKey
ATTR_API_KEYFields inherited from interface IPromptConnectionConfig_ApiUrl
ATTR_API_URLFields inherited from interface IPromptConnectionConfig_ConnectTimeout
ATTR_CONNECT_TIMEOUTFields inherited from interface IPromptConnectionConfig_Model
ATTR_MODELFields inherited from interface IPromptConnectionConfig_ReadTimeout
ATTR_READ_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the API key, i.e. the token needed to authenticate with the prompt service provider.Gets the API URL, i.e. the URL of the prompt service provider.Gets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.getModel()Gets the name of the model to use when making requests to the prompt service provider.Gets the read timeout, i.e. the maximum time to wait for the response from the prompt service provider after sending a request.voidSets the API key, i.e. the token needed to authenticate with the prompt service provider.voidSets the API URL, i.e. the URL of the prompt service provider.voidsetConnectTimeout(Duration connectionTimeout) Sets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.voidSets the name of the model to use when making requests to the prompt service provider.voidsetReadTimeout(Duration connectionTimeout) Sets the read timeout, i.e. the maximum time to wait for the response from the prompt service provider after sending a request.
-
Constructor Details
-
GenericOaiConnectionConfig
public GenericOaiConnectionConfig()
-
-
Method Details
-
getApiKey
Description copied from interface:IPromptConnectionConfig_ApiKeyGets the API key, i.e. the token needed to authenticate with the prompt service provider.- Specified by:
getApiKeyin interfaceIPromptConnectionConfig_ApiKey- Returns:
- The API key.
-
setApiKey
Description copied from interface:IPromptConnectionConfig_ApiKeySets the API key, i.e. the token needed to authenticate with the prompt service provider.- Specified by:
setApiKeyin interfaceIPromptConnectionConfig_ApiKey- Parameters:
apiKey- The API key to set.
-
getApiUrl
Description copied from interface:IPromptConnectionConfig_ApiUrlGets the API URL, i.e. the URL of the prompt service provider.- Specified by:
getApiUrlin interfaceIPromptConnectionConfig_ApiUrl- Returns:
- The API URL.
-
setApiUrl
Description copied from interface:IPromptConnectionConfig_ApiUrlSets the API URL, i.e. the URL of the prompt service provider.- Specified by:
setApiUrlin interfaceIPromptConnectionConfig_ApiUrl- Parameters:
apiUrl- The API URL to set.
-
getConnectTimeout
Description copied from interface:IPromptConnectionConfig_ConnectTimeoutGets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.- Specified by:
getConnectTimeoutin interfaceIPromptConnectionConfig_ConnectTimeout- Returns:
- The connection timeout.
-
setConnectTimeout
Description copied from interface:IPromptConnectionConfig_ConnectTimeoutSets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.- Specified by:
setConnectTimeoutin interfaceIPromptConnectionConfig_ConnectTimeout- Parameters:
connectionTimeout- The connection timeout to set.
-
getModel
Description copied from interface:IPromptConnectionConfig_ModelGets the name of the model to use when making requests to the prompt service provider.- Specified by:
getModelin interfaceIPromptConnectionConfig_Model- Returns:
- The name of the model to use when making requests to the prompt service provider.
-
setModel
Description copied from interface:IPromptConnectionConfig_ModelSets the name of the model to use when making requests to the prompt service provider.- Specified by:
setModelin interfaceIPromptConnectionConfig_Model- Parameters:
model- The name of the model to use when making requests to the prompt service provider.
-
getReadTimeout
Description copied from interface:IPromptConnectionConfig_ReadTimeoutGets the read timeout, i.e. the maximum time to wait for the response from the prompt service provider after sending a request.- Specified by:
getReadTimeoutin interfaceIPromptConnectionConfig_ReadTimeout- Returns:
- The read timeout.
-
setReadTimeout
Description copied from interface:IPromptConnectionConfig_ReadTimeoutSets the read timeout, i.e. the maximum time to wait for the response from the prompt service provider after sending a request.- Specified by:
setReadTimeoutin interfaceIPromptConnectionConfig_ReadTimeout- Parameters:
connectionTimeout- The read timeout to set.
-