Add "citations" to chatCompletion response for access to and use with Perplexity api #423
stardomains3
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://docs.perplexity.ai/api-reference/chat-completions
"citations
any[]"
I guess it is a list
@serializable
public final data class ChatCompletion(
@SerialName(value = "id")
public final val id: String,
@SerialName(value = "created")
public final val created: Long,
@SerialName(value = "model")
public final val model: ModelId,
@SerialName(value = "choices")
public final val choices: List,
@SerialName(value = "usage")
public final val usage: Usage? = null,
@SerialName(value = "system_fingerprint")
public final val systemFingerprint: String? = null
)
Beta Was this translation helpful? Give feedback.
All reactions