Skip to content

Commit

Permalink
fix max tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
AiQL.com authored Aug 2, 2024
1 parent 84cdbf8 commit 760866e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@
<div class="input-area">
<v-col class="input-config">
<v-row>
<v-btn :size=settingStore.avatarSize class="input-icon" color="primary" variant="elevated"
icon @click="messageStore.init()">
<v-btn :size=settingStore.avatarSize class="input-icon" color="primary" variant="elevated" icon
@click="messageStore.init()">
<v-icon v-if="settingStore.fontStatus">mdi-alpha-a-circle</v-icon>
<div class="text-caption" v-else>A</div>
</v-btn>
Expand Down Expand Up @@ -545,7 +545,8 @@
v-model="chatbotStore.max_tokens_type" variant="outlined">
</v-combobox>
<v-combobox class="px-2" density='compact' label="MaxTokenValue"
v-model="chatbotStore.max_tokens_value" variant="outlined">
v-model="chatbotStore.max_tokens_value" type='number' single-line
variant="outlined">
</v-combobox>
</v-row>
<v-combobox class="px-2" density='compact' label="ContentType"
Expand Down Expand Up @@ -1151,7 +1152,7 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
}

if (chatbotStore.max_tokens_value) {
body[chatbotStore.max_tokens_type] = chatbotStore.max_tokens_value
body[chatbotStore.max_tokens_type] = parseInt(chatbotStore.max_tokens_value)
}

const request = {
Expand Down

0 comments on commit 760866e

Please sign in to comment.