feat: support optional query content (#1097)
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
This commit is contained in:
parent
1ade70aa1e
commit
2d5ad0d208
36 changed files with 547 additions and 289 deletions
|
|
@ -91,9 +91,14 @@ export const TONE_LIST = [
|
|||
},
|
||||
]
|
||||
|
||||
export const getMaxToken = (modelId: string) => {
|
||||
return (modelId === 'gpt-4' || modelId === 'gpt-3.5-turbo-16k') ? 8000 : 4000
|
||||
}
|
||||
|
||||
export const LOCALE_COOKIE_NAME = 'locale'
|
||||
|
||||
export const DEFAULT_VALUE_MAX_LEN = 48
|
||||
export const DEFAULT_PARAGRAPH_VALUE_MAX_LEN = 1000
|
||||
|
||||
export const zhRegex = /^[\u4E00-\u9FA5]$/m
|
||||
export const emojiRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue