ChatContentFile - TypeScript SDK

ChatContentFile type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

File content part for document processing

Example Usage

1import { ChatContentFile } from "@openrouter/sdk/models";
2
3let value: ChatContentFile = {
4 file: {},
5 type: "file",
6};

Fields

FieldTypeRequiredDescription
filemodels.FileT✔️N/A
type”file”✔️N/A