Class PerplexityResponse
Inheritance
PerplexityResponse
Assembly: Glitch9.AIDevKit.Provider.Perplexity.dll
Syntax
public sealed class PerplexityResponse : IProjector<ChatCompletionEvent>
Properties
|
Edit this page
View Source
Choices
Required. A list of chat completion choices.
Can be more than one if n is greater than 1.
Declaration
[JsonProperty("choices")]
public List<PerplexityChoice> Choices { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Required. The Unix timestamp (in seconds) of when the chat completion was created.
Declaration
[JsonProperty("created")]
public UnixTime CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
Id
Required. A unique identifier for the chat completion.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
Model
Required. The model that generated the response.
Declaration
[JsonProperty("model")]
public string Model { get; set; }
Property Value
|
Edit this page
View Source
Object
Required. The type of object, which is always chat.completion.
Declaration
[JsonProperty("object")]
public string Object { get; set; }
Property Value
|
Edit this page
View Source
SearchResults
A list of search results related to the response.
Declaration
[JsonProperty("search_results")]
public List<ApiPublicSearchResult> SearchResults { get; set; }
Property Value
|
Edit this page
View Source
Usage
Required. Usage statistics and token counts for this completion.
Declaration
[JsonProperty("usage")]
public PerplexityUsage Usage { get; set; }
Property Value
Methods
|
Edit this page
View Source
Project()
Declaration
public ChatCompletionEvent Project()
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods