fix: Update the character count for instructions (#11419)
- Increase the Captain instruction size to 20k instead of 2k - Fix a display issue in the Captain playground and i18n issue in Captain form.
This commit is contained in:
@@ -65,7 +65,7 @@ watch(() => props.messages.length, scrollToBottom);
|
|||||||
class="max-w-[80%] rounded-lg p-3 text-sm"
|
class="max-w-[80%] rounded-lg p-3 text-sm"
|
||||||
:class="getMessageStyle(message.sender)"
|
:class="getMessageStyle(message.sender)"
|
||||||
>
|
>
|
||||||
<div v-html="formatMessage(message.content)" />
|
<div class="break-words" v-html="formatMessage(message.content)" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ watch(
|
|||||||
v-model="state.instructions"
|
v-model="state.instructions"
|
||||||
:placeholder="t('CAPTAIN.ASSISTANTS.FORM.INSTRUCTIONS.PLACEHOLDER')"
|
:placeholder="t('CAPTAIN.ASSISTANTS.FORM.INSTRUCTIONS.PLACEHOLDER')"
|
||||||
:message="formErrors.instructions"
|
:message="formErrors.instructions"
|
||||||
:max-length="2000"
|
:max-length="20000"
|
||||||
:message-type="formErrors.instructions ? 'error' : 'info'"
|
:message-type="formErrors.instructions ? 'error' : 'info'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -403,15 +403,18 @@
|
|||||||
},
|
},
|
||||||
"NAME": {
|
"NAME": {
|
||||||
"LABEL": "Name",
|
"LABEL": "Name",
|
||||||
"PLACEHOLDER": "Enter assistant name"
|
"PLACEHOLDER": "Enter assistant name",
|
||||||
|
"ERROR": "The name is required"
|
||||||
},
|
},
|
||||||
"DESCRIPTION": {
|
"DESCRIPTION": {
|
||||||
"LABEL": "Description",
|
"LABEL": "Description",
|
||||||
"PLACEHOLDER": "Enter assistant description"
|
"PLACEHOLDER": "Enter assistant description",
|
||||||
|
"ERROR": "The description is required"
|
||||||
},
|
},
|
||||||
"PRODUCT_NAME": {
|
"PRODUCT_NAME": {
|
||||||
"LABEL": "Product Name",
|
"LABEL": "Product Name",
|
||||||
"PLACEHOLDER": "Enter product name"
|
"PLACEHOLDER": "Enter product name",
|
||||||
|
"ERROR": "The product name is required"
|
||||||
},
|
},
|
||||||
"WELCOME_MESSAGE": {
|
"WELCOME_MESSAGE": {
|
||||||
"LABEL": "Welcome Message",
|
"LABEL": "Welcome Message",
|
||||||
|
|||||||
Reference in New Issue
Block a user