Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Nov 15, 2023
1 parent 356e165 commit f748882
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions web/src/typings/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ declare namespace Chat {
name: string
url: string
enablePerModeRatelimit: boolean,
maxToken?: number,
defaultToken?: number,
orderNumber?: number,
maxToken?: string,
defaultToken?: string,
orderNumber?: string,
httpTimeOut?: number

}
Expand Down
4 changes: 2 additions & 2 deletions web/src/views/chat/components/Session/SessionConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ watch(modelRef, async (modelValue: ModelType) => {
const tokenUpperLimit = computed(() => {
if (data.value) {
if (data && data.value) {
for (let modelConfig of data.value) {
if (modelConfig.name == modelRef.value.chatModel) {
return modelConfig.maxToken
Expand All @@ -91,7 +91,7 @@ const tokenUpperLimit = computed(() => {
})
const defaultToken = computed(() => {
if (data.value) {
if (data && data.value) {
for (let modelConfig of data.value) {
if (modelConfig.name == modelRef.value.chatModel) {
return modelConfig.defaultToken
Expand Down

0 comments on commit f748882

Please sign in to comment.