Related Interfaces:
IChatService.cs
Fields
| Field Name | Type | Description |
|---|---|---|
_aoaiEndpoint | Uri | Azure OpenAI endpoint |
_aoaiKey | AzureKeyCredential | Azure OpenAI key |
_aaisEndpoint | Uri | Azure AI Search endpoint |
_aaisKey | AzureKeyCredential | Azure AI Search key |
_aoaiClient | AzureOpenAIClient | Azure OpenAI client |
Constructor
Properties
ChatService does not have any properties.
Methods
| Method Name | Description | Parameters | Return Type |
|---|---|---|---|
GetChatClient | Gets a ChatClient for a specific model deployment in Azure OpenAI | string | ChatClient |
GetChatOptions | Builds a ChatCompletionOptions object to set MaxOutputTokenCount, Temperature, IndexName, TopNDocuments, and QueryType | string,int,int,float | ChatCompletionOptions |
GetChatMessages | Builds a list of ChatMessage to provide system prompt & previous message context | string,List<Message>,int | List<ChatMessage> |
GetTitleForNewConversation | Generates a 3-5 word title for a conversation | string,string | Task<string> |
