Constructor
# new AiTextarea(config)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
object
|
||
iconColorOn |
string
|
<optional> |
Icon color |
ai |
object
|
<optional> |
Optional AI default configuration |
ai.who |
string
|
<optional> |
Default persona: "-" | "sales manager" | "hr manager" | "marketing manager" | "product manager" |
ai.what |
string
|
<optional> |
Default task: "-" | "draft a blog post" | "summup a text" | "convert to tweet" | "write an email" | "create user persona" | "create job description" |
ai.tone |
string
|
<optional> |
Default tone: "casual" | "formal" | "humour" | "ironic" |
ai.goal |
string
|
<optional> |
Default goal: "-" | "inform" | "persuade" | "inspire" |
ai.temperature |
number
|
<optional> |
OpenAI creativity, from 0 to 1 |
ai.max_tokens |
number
|
<optional> |
Max number of tokens for OpenAI answer |
this