Uses of Class
com.azure.ai.openai.models.CompletionsOptions
Packages that use CompletionsOptions
Package
Description
Package containing the classes for OpenAI.
Package containing the data models for OpenAI.
-
Uses of CompletionsOptions in com.azure.ai.openai
Methods in com.azure.ai.openai with parameters of type CompletionsOptionsModifier and TypeMethodDescriptionOpenAIAsyncClient.getCompletions(String deploymentOrModelName, CompletionsOptions completionsOptions) Gets completions for the provided input prompts.OpenAIClient.getCompletions(String deploymentOrModelName, CompletionsOptions completionsOptions) Gets completions for the provided input prompts.OpenAIAsyncClient.getCompletionsStream(String deploymentOrModelName, CompletionsOptions completionsOptions) Gets completions as a stream for the provided input prompts.com.azure.core.util.IterableStream<Completions>OpenAIClient.getCompletionsStream(String deploymentOrModelName, CompletionsOptions completionsOptions) Gets completions as a stream for the provided input prompts.Mono<com.azure.core.http.rest.Response<Completions>>OpenAIAsyncClient.getCompletionsWithResponse(String deploymentOrModelName, CompletionsOptions completionsOptions, com.azure.core.http.rest.RequestOptions requestOptions) Gets completions for the provided input prompts.com.azure.core.http.rest.Response<Completions>OpenAIClient.getCompletionsWithResponse(String deploymentOrModelName, CompletionsOptions completionsOptions, com.azure.core.http.rest.RequestOptions requestOptions) Gets completions for the provided input prompts. -
Uses of CompletionsOptions in com.azure.ai.openai.models
Methods in com.azure.ai.openai.models that return CompletionsOptionsModifier and TypeMethodDescriptionSet the bestOf property: A value that controls how many completions will be internally generated prior to response formulation.Set the echo property: A value specifying whether completions responses should include input prompts as prefixes to their generated output.CompletionsOptions.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.CompletionsOptions.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.CompletionsOptions.setLogprobs(Integer logprobs) Set the logprobs property: A value that controls the emission of log probabilities for the provided number of most likely tokens within a completions response.CompletionsOptions.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 completions choices that should be generated per provided prompt as part of an overall completions response.CompletionsOptions.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.Set the suffix property: The suffix that comes after a completion of inserted text.CompletionsOptions.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.