Skip to content

Commit

Permalink
Removing Model from model name and removing unnecessary aliases (#22390)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl authored Jan 31, 2023
1 parent 066622c commit df7fd3c
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ during training, so if a prompt is not specified the model will generate as if
from the beginning of a new document. Maximum allowed size of string list is
2048.
""")
prompt?: CompletionsPrompt;
prompt?: string[];

@doc("The maximum number of tokens to generate. Has minimum of 0.")
max_tokens?: int32;
Expand Down Expand Up @@ -83,13 +83,13 @@ have logprobs returned. Minimum of 0 and maximum of 100 allowed.
logprobs?: int32;

@doc("The name of the model to use")
"model"?: string;
"model": string;

@doc("Echo back the prompt in addition to the completion")
echo?: boolean;

@doc("A sequence which indicates the end of the current document.")
stop?: CompletionsStop;
stop?: string[];

@doc("Completion configuration")
completion_config?: string;
Expand Down Expand Up @@ -120,10 +120,6 @@ stream intermediate progress if best_of > 1. Has maximum value of 128.
best_of?: int32;
};

alias CompletionsPrompt = string[];

alias CompletionsStop = string[];

@doc("Expected response schema to completion request")
model Completions {
@doc("Request ID for troubleshooting purposes")
Expand All @@ -149,13 +145,13 @@ model Choice {
@doc("Index")
index?: int32;
@doc("Log Prob Model")
logprobs?: CompletionsLogProbsModel;
logprobs?: CompletionsLogProbs;
@doc("Reason for finishing")
finish_reason?: string;
}

@doc("LogProbs model within completion choice")
model CompletionsLogProbsModel {
model CompletionsLogProbs {
@doc("Tokens")
tokens?: string[];
@doc("LogProbs of Tokens")
Expand Down

0 comments on commit df7fd3c

Please sign in to comment.