ComposerOption
type ComposerOption = { attachments?: { accept?: Record<string, string[]>; enabled: boolean; maxCount?: number; maxSize?: number; }; models?: ModelOption[]; placeholder?: string; tools?: ToolOption[];};
Properties
Section titled “Properties”attachments?
Section titled “attachments?”optional attachments: { accept?: Record<string, string[]>; enabled: boolean; maxCount?: number; maxSize?: number;};
Configuration for file attachments in the composer. If not provided, attachments will be disabled.
Name | Type | Description |
---|---|---|
|
|
The MIME types and extensions that are accepted for file uploads,
similar to |
|
|
Whether file attachments are enabled in the composer. Default
|
|
|
The maximum number of attachments that can be sent in a single message. Default
|
|
|
The maximum size of an attachment in bytes. Default
|
models?
Section titled “models?”optional models: ModelOption[];
A list of models that users can choose from before sending a message.
placeholder?
Section titled “placeholder?”optional placeholder: string;
The placeholder text to show in the composer input.
Default
Section titled “Default”'Message the AI';
tools?
Section titled “tools?”optional tools: ToolOption[];
When provided a list of tool options, the user will be able to select a tool from a menu in the composer.