XaiClientSecret
Namespace: Vercel.AI.Xai
public sealed class XaiClientSecretClient secret returned by /realtime/client_secrets.
Inheritance: object
Constructors
Section titled “Constructors”XaiClientSecret(string, string, long?)
Section titled “XaiClientSecret(string, string, long?)”public XaiClientSecret(string token, string url, long? expiresAt)Creates a client secret.
Parameters
| Name | Type | Description |
|---|---|---|
token |
string | |
url |
string | |
expiresAt |
long? |
Properties
Section titled “Properties”ExpiresAt
Section titled “ExpiresAt”public long? ExpiresAt { get; }Unix expiration, when the response includes one.
Value: long?
public string Token { get; }Secret token.
Value: string
public string Url { get; }WebSocket URL. The model is a query parameter.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product