# TranslatorCreateOptions

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`](https://docs.aibrow.ai/api-reference/types/aimodelgpuengine)                                                                                                                                                               |
| **dtype** <mark style="background-color:purple;">web</mark> `optional` [`AIModelDtype`](https://docs.aibrow.ai/api-reference/types/aimodeldtype)                                                                                                                                                                                                                                       |
| **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`](https://docs.aibrow.ai/api-reference/types/aicreatemonitor)                                                                                                                                                                                                                                                                                 |
| **sourceLanguage**  `string`                                                                                                                                                                                                                                                                                                                                                           |
| **targetLanguage**  `string`                                                                                                                                                                                                                                                                                                                                                           |
