Package edu.tufts.hrilab.llm.azure
Class AzureClient
java.lang.Object
edu.tufts.hrilab.llm.azure.AzureClient
- All Implemented Interfaces:
LLMClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchatCompletion(Chat chat) chatCompletion(Chat chat, String model) chatCompletion(String userPrompt) chatCompletion(String userPrompt, String model) chatCompletion(String userPrompt, String model, String systemPrompt) chatCompletion(List<Message> messages) completion(String userPrompt) completion(String userPrompt, String model) completion(String userPrompt, String model, String systemPrompt) llamaAzureChatCompletion(LlamaAzureCompletionRequestBody requestBody) llamaAzureChatCompletion(LlamaAzureCompletionRequestBody requestBody, String model) voidsetEndpoint(String endpoint) voidsetMaxNewTokens(int maxNewTokens) Sets the max number of tokens included in the response (Not including the provided prompt)voidvoidsetStopWords(String[] stopWords) voidsetTemperature(float temperatureFloat) Sets the temperature of the model.
-
Field Details
-
modelType
-
-
Constructor Details
-
AzureClient
public AzureClient()
-
-
Method Details
-
setEndpoint
- Specified by:
setEndpointin interfaceLLMClient
-
setModel
-
setStopWords
- Specified by:
setStopWordsin interfaceLLMClient
-
setMaxNewTokens
public void setMaxNewTokens(int maxNewTokens) Sets the max number of tokens included in the response (Not including the provided prompt)- Parameters:
maxNewTokens- - The number of tokens to set
-
setTemperature
public void setTemperature(float temperatureFloat) Sets the temperature of the model.- Specified by:
setTemperaturein interfaceLLMClient- Parameters:
temperatureFloat- - The temperature value to set
-
completion
- Specified by:
completionin interfaceLLMClient
-
completion
- Specified by:
completionin interfaceLLMClient
-
completion
- Specified by:
completionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
chatCompletion
- Specified by:
chatCompletionin interfaceLLMClient
-
llamaAzureChatCompletion
public LlamaHFChatCompletionResponse llamaAzureChatCompletion(LlamaAzureCompletionRequestBody requestBody) -
llamaAzureChatCompletion
public LlamaHFChatCompletionResponse llamaAzureChatCompletion(LlamaAzureCompletionRequestBody requestBody, String model)
-