feat: support setting model context length

This commit is contained in:
AnotiaWang
2025-02-17 16:40:54 +08:00
parent fc83d9387e
commit 78bdfd3282
6 changed files with 28 additions and 8 deletions

View File

@ -17,8 +17,8 @@
"apiKey": "API Key",
"apiBase": "API Base URL",
"model": "Model",
"contextSize": "Context Size",
"contextSizeHelp": "The maximum size of the context in tokens. This is the maximum number of tokens that will be sent to the model. The default is 128,000 tokens.",
"contextSize": "Context Length",
"contextSizeHelp": "The maximum number of tokens that will be sent to the model. Can't be bigger than the model's context length.",
"providers": {
"openaiCompatible": {
"title": "OpenAI Compatible",
@ -102,4 +102,4 @@
"refresh": "Refresh page",
"dismiss": "Dismiss"
}
}
}

View File

@ -17,8 +17,8 @@
"apiKey": "API 密钥",
"apiBase": "API Base URL",
"model": "模型名称",
"contextSize": "上下文大小",
"contextSizeHelp": "上下文的最大大小(以 token 计)。这是将发送给模型的最大 token 数量。默认值为 128,000 个 token。",
"contextSize": "上下文长度",
"contextSizeHelp": "发送给模型的最大 token 数量,不能超过模型本身支持的上下文长度。",
"providers": {
"openaiCompatible": {
"title": "OpenAI Compatible",
@ -102,4 +102,4 @@
"refresh": "刷新",
"dismiss": "忽略"
}
}
}