Uses of Class
com.azure.ai.inference.models.ChatCompletionsOptions
Packages that use ChatCompletionsOptions
Package
Description
Package containing the classes for Model.
Package containing the data models for Model.
-
Uses of ChatCompletionsOptions in com.azure.ai.inference
Methods in com.azure.ai.inference with parameters of type ChatCompletionsOptionsModifier and TypeMethodDescriptionChatCompletionsAsyncClient.complete(ChatCompletionsOptions options) Gets chat completions for the provided chat messages.ChatCompletionsClient.complete(ChatCompletionsOptions options) Gets chat completions for the provided chat messages.ChatCompletionsAsyncClient.completeStream(ChatCompletionsOptions options) Gets chat completions for the provided chat messages.com.azure.core.util.IterableStream<StreamingChatCompletionsUpdate> ChatCompletionsClient.completeStream(ChatCompletionsOptions options) Gets chat completions for the provided chat messages in streaming mode. -
Uses of ChatCompletionsOptions in com.azure.ai.inference.models
Methods in com.azure.ai.inference.models that return ChatCompletionsOptionsModifier and TypeMethodDescriptionstatic ChatCompletionsOptionsChatCompletionsOptions.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ChatCompletionsOptions from the JsonReader.ChatCompletionsOptions.setAdditionalProperties(Map<String, com.azure.core.util.BinaryData> additionalProperties) Set the additionalProperties property: The ChatCompletionsOptions model.ChatCompletionsOptions.setExtraParams(ExtraParameters extraParams) Set the extraParams property: Controls what happens if extra parameters, undefined by the REST API, are passed in the JSON request payload.ChatCompletionsOptions.setFrequencyPenalty(Double frequencyPenalty) Set the frequencyPenalty property: A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated text.ChatCompletionsOptions.setJsonFormat(String name, Map<String, com.azure.core.util.BinaryData> jsonSchema) Set the responseFormat to a given JSON schema: The format that the model must output.ChatCompletionsOptions.setMaxTokens(Integer maxTokens) Set the maxTokens property: The maximum number of tokens to generate.Set the model property: ID of the specific AI model to use, if more than one model is available on the endpoint.ChatCompletionsOptions.setPresencePenalty(Double presencePenalty) Set the presencePenalty property: A value that influences the probability of generated tokens appearing based on their existing presence in generated text.ChatCompletionsOptions.setResponseFormat(ChatCompletionsResponseFormat responseFormat) Set the responseFormat property: An object specifying the format that the model must output.Set the seed property: If specified, the system will make a best effort to sample deterministically such that repeated requests with the same seed and parameters should return the same result.Set the stop property: A collection of textual sequences that will end completions generation.ChatCompletionsOptions.setTemperature(Double temperature) Set the temperature property: The sampling temperature to use that controls the apparent creativity of generated completions.ChatCompletionsOptions.setToolChoice(com.azure.core.util.BinaryData toolChoice) Set the toolChoice property: If specified, the model will configure which of the provided tools it can use for the chat completions response.ChatCompletionsOptions.setTools(List<ChatCompletionsToolDefinition> tools) Set the tools property: A list of tools the model may request to call.Set the topP property: An alternative to sampling with temperature called nucleus sampling.