Skip to content

Commit

Permalink
update variable names in responses.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpakancharla committed Sep 26, 2024
1 parent f4ac9fe commit 1e22275
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ export interface LogprobsResult {
* Length = total number of decoding steps.
* The chosen candidates may or may not be in topCandidates.
*/
chosenCandidates: Candidate[];
chosenCandidates: LogProbsCandidate[];
}

/**
* Candidate for the logprobs token and score.
* @public
*/
export interface Candidate {
export interface LogProbsCandidate {
/** The candidate's token string value. */
token: string;
/** The candidate's token id value. */
Expand All @@ -119,7 +119,7 @@ export interface Candidate {
*/
export interface TopCandidates {
/** Sorted by log probability in descending order. */
candidates: Candidate[];
candidates: LogProbsCandidate[];
}

/**
Expand Down Expand Up @@ -160,9 +160,9 @@ export interface GenerateContentCandidate {
safetyRatings?: SafetyRating[];
citationMetadata?: CitationMetadata;
/** Average log probability score of the candidate. */
avgLogProbs?: number;
avgLogprobs?: number;
/** Log-likelihood scores for the response tokens and top tokens. */
logProbsResult?: LogprobsResult;
logprobsResult?: LogprobsResult;
}

/**
Expand Down

0 comments on commit 1e22275

Please sign in to comment.