> For the complete documentation index, see [llms.txt](https://docs.aibrow.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aibrow.ai/api-reference/types/writercreateoptions.md).

# WriterCreateOptions

An object with the following properties

| Options                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>model</strong> <mark style="background-color:green;">extension</mark> <mark style="background-color:purple;">web</mark> <code>optional string</code><br>The id of the model to use, undefined to use the default. The extension version also accepts a direct link to a HuggingFace GGUF file. The web version also accepts the repo & name of a HuggingFace ONNX repo.</p> |
| **gpuEngine** <mark style="background-color:green;">extension</mark> <mark style="background-color:purple;">web</mark> `optional` [`AICapabilityGpuEngine`](/api-reference/types/aimodelgpuengine.md)                                                                                                                                                                                  |
| **dtype** <mark style="background-color:purple;">web</mark> `optional` [`AIModelDtype`](/api-reference/types/aimodeldtype.md)                                                                                                                                                                                                                                                          |
| **maxTokens** <mark style="background-color:green;">extension</mark> <mark style="background-color:purple;">web</mark> `optional number`                                                                                                                                                                                                                                               |
| **flashAttention** <mark style="background-color:green;">extension</mark> <mark style="background-color:purple;">web</mark> `optional boolean`                                                                                                                                                                                                                                         |
| **contextSize** <mark style="background-color:green;">extension</mark> <mark style="background-color:purple;">web</mark> `optional number`                                                                                                                                                                                                                                             |
| **signal** `optional AbortSignal`                                                                                                                                                                                                                                                                                                                                                      |
| **monitor** `optional` [`AICreateMonitor`](/api-reference/types/aicreatemonitor.md)                                                                                                                                                                                                                                                                                                    |
| **tone** `optional` [`WriterTone`](/api-reference/types/writertone.md)                                                                                                                                                                                                                                                                                                                 |
| **format** `optional` [`WriterFormat`](/api-reference/types/writerformat.md)                                                                                                                                                                                                                                                                                                           |
| **length** `optional` [`WriterLength`](/api-reference/types/writerlength.md)                                                                                                                                                                                                                                                                                                           |
| **expectedInputLanguages** `optional string[]`                                                                                                                                                                                                                                                                                                                                         |
| **expectedContextLanguages** `optional string[]`                                                                                                                                                                                                                                                                                                                                       |
| **outputLanguage** `optional string`                                                                                                                                                                                                                                                                                                                                                   |
| **sharedContext** `optional string`                                                                                                                                                                                                                                                                                                                                                    |
