Uses of Class
com.azure.ai.openai.models.ChatCompletionsOptions
Packages that use ChatCompletionsOptions
Package
Description
Package containing the classes for OpenAI.
Package containing the data models for OpenAI.
-
Uses of ChatCompletionsOptions in com.azure.ai.openai
Methods in com.azure.ai.openai with parameters of type ChatCompletionsOptionsModifier and TypeMethodDescriptionOpenAIAsyncClient.getChatCompletions(String deploymentOrModelName, ChatCompletionsOptions chatCompletionsOptions) Gets chat completions for the provided chat messages.OpenAIClient.getChatCompletions(String deploymentOrModelName, ChatCompletionsOptions chatCompletionsOptions) Gets chat completions for the provided chat messages.OpenAIAsyncClient.getChatCompletionsStream(String deploymentOrModelName, ChatCompletionsOptions chatCompletionsOptions) Gets chat completions for the provided chat messages.com.azure.core.util.IterableStream<ChatCompletions>OpenAIClient.getChatCompletionsStream(String deploymentOrModelName, ChatCompletionsOptions chatCompletionsOptions) Gets chat completions for the provided chat messages. -
Uses of ChatCompletionsOptions in com.azure.ai.openai.models
Methods in com.azure.ai.openai.models that return ChatCompletionsOptionsModifier and TypeMethodDescriptionChatCompletionsOptions.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.setFunctionCall(FunctionCallConfig functionCallConfig) Set the functionCall property: Controls how the model responds to function calls.ChatCompletionsOptions.setFunctions(List<FunctionDefinition> functions) Set the functions property: A list of functions the model may generate JSON inputs for.ChatCompletionsOptions.setLogitBias(Map<String, Integer> logitBias) Set the logitBias property: A map between GPT token IDs and bias scores that influences the probability of specific tokens appearing in a completions response.ChatCompletionsOptions.setMaxTokens(Integer maxTokens) Set the maxTokens property: The maximum number of tokens to generate.Set the model property: The model name to provide as part of this completions request.Set the n property: The number of chat completions choices that should be generated for a chat completions response.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.Set the stop property: A collection of textual sequences that will end completions generation.Set the stream property: A value indicating whether chat completions should be streamed for this request.ChatCompletionsOptions.setTemperature(Double temperature) Set the temperature property: The sampling temperature to use that controls the apparent creativity of generated completions.Set the topP property: An alternative to sampling with temperature called nucleus sampling.Set the user property: An identifier for the caller or end user of the operation.