AxAIWebLLMChatResponse Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAIWebLLMChatResponse.md type AxAIWebLLMChatResponse

AxAIWebLLMChatResponse

TypeScript
type AxAIWebLLMChatResponse = object;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L126

WebLLM: Chat response structure

Properties

choices

TypeScript
choices: object[];

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L131

finish_reason

TypeScript
finish_reason: "stop" | "length" | "tool_calls" | "content_filter";

index

TypeScript
index: number;

logprobs?

TypeScript
{
  content: object[];
}

message

TypeScript
{
  content?: string;
  role: "assistant";
  tool_calls?: object[];
}

created

TypeScript
created: number;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L129


id

TypeScript
id: string;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L127


model

TypeScript
model: AxAIWebLLMModelId;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L130


object

TypeScript
object: "chat.completion";

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L128


usage

TypeScript
usage: object;

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/ai/webllm/types.ts#L159

completion_tokens

TypeScript
completion_tokens: number;

prompt_tokens

TypeScript
prompt_tokens: number;

total_tokens

TypeScript
total_tokens: number;
Docs