Add request info inside chat feature

This commit is contained in:
kwaroran
2024-03-19 02:43:39 +09:00
parent 0dce52ee7b
commit bdfdf5141a
6 changed files with 35 additions and 7 deletions

View File

@@ -28,7 +28,8 @@ export function messageForm(arg:Message[], loadPages:number){
data: reformatContent(m.data),
index: i,
saying: m.saying,
chatId: m.chatId ?? 'none'
chatId: m.chatId ?? 'none',
generationInfo: m.generationInfo,
})
}
return a.slice(0, loadPages)
@@ -419,4 +420,8 @@ export const toLangName = (code:string) => {
}
}
export const capitalize = (s:string) => {
return s.charAt(0).toUpperCase() + s.slice(1)
}
export const languageCodes = ["af","ak","am","an","ar","as","ay","az","be","bg","bh","bm","bn","br","bs","ca","co","cs","cy","da","de","dv","ee","el","en","eo","es","et","eu","fa","fi","fo","fr","fy","ga","gd","gl","gn","gu","ha","he","hi","hr","ht","hu","hy","ia","id","ig","is","it","iu","ja","jv","ka","kk","km","kn","ko","ku","ky","la","lb","lg","ln","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","nb","ne","nl","nn","no","ny","oc","om","or","pa","pl","ps","pt","qu","rm","ro","ru","rw","sa","sd","si","sk","sl","sm","sn","so","sq","sr","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ug","uk","ur","uz","vi","wa","wo","xh","yi","yo","zh","zu"]