ResponseFormat - TypeScript SDK
ResponseFormat type definition
Response format configuration
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ResponseFormat type definition
models.ChatFormatGrammarConfigconst value: models.ChatFormatGrammarConfig = {
grammar: "root ::= \"yes\" | \"no\"",
type: "grammar",
};
models.FormatJsonObjectConfigconst value: models.FormatJsonObjectConfig = {
type: "json_object",
};
models.ChatFormatJsonSchemaConfigconst value: models.ChatFormatJsonSchemaConfig = {
jsonSchema: {
name: "math_response",
},
type: "json_schema",
};
models.ChatFormatPythonConfigconst value: models.ChatFormatPythonConfig = {
type: "python",
};
models.ChatFormatTextConfigconst value: models.ChatFormatTextConfig = {
type: "text",
};