mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 10:21:16 +08:00
Fix/opencode known field editors (#2907)
* fix: add opencode model limit editor * fix: add opencode headers editor * style: refine opencode advanced field layout * fix: preserve valid opencode headers * fix: preserve opencode extra options and sync translations --------- Co-authored-by: wzk <wx13571681304@outlook.com> Co-authored-by: Jason Young <44939412+farion1231@users.noreply.github.com> Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
@@ -1359,6 +1359,7 @@
|
||||
"modelName": "Display Name",
|
||||
"noModels": "No models configured",
|
||||
"modelsRequired": "Please add at least one model",
|
||||
"toggleModelDetails": "Toggle model details",
|
||||
"providerKey": "Provider Key",
|
||||
"providerKeyPlaceholder": "my-provider",
|
||||
"providerKeyHint": "Unique identifier in config file. Use lowercase letters, numbers, and hyphens only.",
|
||||
@@ -1366,6 +1367,15 @@
|
||||
"providerKeyRequired": "Provider key is required",
|
||||
"providerKeyDuplicate": "This key is already in use",
|
||||
"providerKeyInvalid": "Invalid format. Use lowercase letters, numbers, and hyphens only.",
|
||||
"headers": "Headers",
|
||||
"headersHint": "Optional HTTP headers sent with provider requests, such as HTTP-Referer or X-Title.",
|
||||
"addHeader": "Add header",
|
||||
"headerName": "Header",
|
||||
"headerValue": "Value",
|
||||
"headerNamePlaceholder": "X-Title",
|
||||
"headerValuePlaceholder": "CC Switch",
|
||||
"removeHeader": "Remove header",
|
||||
"noHeaders": "No custom headers configured",
|
||||
"extraOptions": "Extra Options",
|
||||
"extraOptionsHint": "Configure extra SDK options like timeout, setCacheKey, etc. Values are auto-parsed to appropriate types (number, boolean, etc.).",
|
||||
"addExtraOption": "Add",
|
||||
@@ -1375,6 +1385,9 @@
|
||||
"extraOptionValuePlaceholder": "600000",
|
||||
"noExtraOptions": "No extra options configured",
|
||||
"noModelOptions": "Model options, click + to add",
|
||||
"modelLimits": "Token Limits",
|
||||
"limitContext": "Context",
|
||||
"limitOutput": "Output",
|
||||
"modelExtraFields": "Model Properties",
|
||||
"noModelExtraFields": "Model properties (variants, cost, etc.), click + to add",
|
||||
"modelExtraFieldKeyPlaceholder": "variants",
|
||||
|
||||
@@ -1359,6 +1359,7 @@
|
||||
"modelName": "表示名",
|
||||
"noModels": "モデルが設定されていません",
|
||||
"modelsRequired": "モデルを少なくとも1つ追加してください",
|
||||
"toggleModelDetails": "モデル詳細を開閉",
|
||||
"providerKey": "プロバイダーキー",
|
||||
"providerKeyPlaceholder": "my-provider",
|
||||
"providerKeyHint": "設定ファイルの一意の識別子です。小文字、数字、ハイフンのみ使用できます。",
|
||||
@@ -1366,6 +1367,15 @@
|
||||
"providerKeyRequired": "プロバイダーキーを入力してください",
|
||||
"providerKeyDuplicate": "このキーは既に使用されています",
|
||||
"providerKeyInvalid": "無効な形式です。小文字、数字、ハイフンのみ使用できます。",
|
||||
"headers": "ヘッダー",
|
||||
"headersHint": "HTTP-Referer や X-Title など、プロバイダーリクエストに付与する任意の HTTP ヘッダーです。",
|
||||
"addHeader": "ヘッダーを追加",
|
||||
"headerName": "ヘッダー",
|
||||
"headerValue": "値",
|
||||
"headerNamePlaceholder": "X-Title",
|
||||
"headerValuePlaceholder": "CC Switch",
|
||||
"removeHeader": "ヘッダーを削除",
|
||||
"noHeaders": "カスタムヘッダーはありません",
|
||||
"extraOptions": "追加オプション",
|
||||
"extraOptionsHint": "timeout、setCacheKey などの SDK オプションを設定。値は自動的に適切な型(数値、真偽値など)に変換されます。",
|
||||
"addExtraOption": "追加",
|
||||
@@ -1375,6 +1385,9 @@
|
||||
"extraOptionValuePlaceholder": "600000",
|
||||
"noExtraOptions": "追加オプションはありません",
|
||||
"noModelOptions": "モデルオプション、+ をクリックして追加",
|
||||
"modelLimits": "トークン制限",
|
||||
"limitContext": "コンテキスト",
|
||||
"limitOutput": "出力",
|
||||
"modelExtraFields": "モデルプロパティ",
|
||||
"noModelExtraFields": "モデルプロパティ(variants、cost など)、+ をクリックして追加",
|
||||
"modelExtraFieldKeyPlaceholder": "variants",
|
||||
|
||||
@@ -1331,6 +1331,7 @@
|
||||
"modelName": "顯示名稱",
|
||||
"noModels": "暫無模型設定",
|
||||
"modelsRequired": "請至少新增一個模型設定",
|
||||
"toggleModelDetails": "展開或收合模型詳細資料",
|
||||
"providerKey": "供應商標識",
|
||||
"providerKeyPlaceholder": "my-provider",
|
||||
"providerKeyHint": "設定檔中的唯一識別碼,只能使用小寫字母、數字和連字號",
|
||||
@@ -1338,6 +1339,15 @@
|
||||
"providerKeyRequired": "請填寫供應商標識",
|
||||
"providerKeyDuplicate": "此標識已被使用,請更換",
|
||||
"providerKeyInvalid": "標識格式無效,只能使用小寫字母、數字和連字號",
|
||||
"headers": "請求標頭",
|
||||
"headersHint": "隨供應商請求傳送的選用 HTTP 請求標頭,例如 HTTP-Referer 或 X-Title。",
|
||||
"addHeader": "新增請求標頭",
|
||||
"headerName": "請求標頭",
|
||||
"headerValue": "值",
|
||||
"headerNamePlaceholder": "X-Title",
|
||||
"headerValuePlaceholder": "CC Switch",
|
||||
"removeHeader": "刪除請求標頭",
|
||||
"noHeaders": "暫無自訂請求標頭",
|
||||
"extraOptions": "額外選項",
|
||||
"extraOptionsHint": "設定額外的 SDK 選項,如 timeout、setCacheKey 等。值會自動解析類型(數字、布林值等)。",
|
||||
"addExtraOption": "新增",
|
||||
@@ -1347,6 +1357,9 @@
|
||||
"extraOptionValuePlaceholder": "600000",
|
||||
"noExtraOptions": "暫無額外選項",
|
||||
"noModelOptions": "模型選項,點擊 + 新增",
|
||||
"modelLimits": "Token 限制",
|
||||
"limitContext": "上下文",
|
||||
"limitOutput": "輸出",
|
||||
"modelExtraFields": "模型屬性",
|
||||
"noModelExtraFields": "模型屬性 (variants, cost 等),點擊 + 新增",
|
||||
"modelExtraFieldKeyPlaceholder": "variants",
|
||||
|
||||
@@ -1359,6 +1359,7 @@
|
||||
"modelName": "显示名称",
|
||||
"noModels": "暂无模型配置",
|
||||
"modelsRequired": "请至少添加一个模型配置",
|
||||
"toggleModelDetails": "展开或收起模型详情",
|
||||
"providerKey": "供应商标识",
|
||||
"providerKeyPlaceholder": "my-provider",
|
||||
"providerKeyHint": "配置文件中的唯一标识符,只能使用小写字母、数字和连字符",
|
||||
@@ -1366,6 +1367,15 @@
|
||||
"providerKeyRequired": "请填写供应商标识",
|
||||
"providerKeyDuplicate": "此标识已被使用,请更换",
|
||||
"providerKeyInvalid": "标识格式无效,只能使用小写字母、数字和连字符",
|
||||
"headers": "请求头",
|
||||
"headersHint": "随供应商请求发送的可选 HTTP 请求头,如 HTTP-Referer 或 X-Title。",
|
||||
"addHeader": "添加请求头",
|
||||
"headerName": "请求头",
|
||||
"headerValue": "值",
|
||||
"headerNamePlaceholder": "X-Title",
|
||||
"headerValuePlaceholder": "CC Switch",
|
||||
"removeHeader": "删除请求头",
|
||||
"noHeaders": "暂无自定义请求头",
|
||||
"extraOptions": "额外选项",
|
||||
"extraOptionsHint": "配置额外的 SDK 选项,如 timeout、setCacheKey 等。值会自动解析类型(数字、布尔值等)。",
|
||||
"addExtraOption": "添加",
|
||||
@@ -1375,6 +1385,9 @@
|
||||
"extraOptionValuePlaceholder": "600000",
|
||||
"noExtraOptions": "暂无额外选项",
|
||||
"noModelOptions": "模型选项,点击 + 添加",
|
||||
"modelLimits": "Token 限制",
|
||||
"limitContext": "上下文",
|
||||
"limitOutput": "输出",
|
||||
"modelExtraFields": "模型属性",
|
||||
"noModelExtraFields": "模型属性 (variants, cost 等),点击 + 添加",
|
||||
"modelExtraFieldKeyPlaceholder": "variants",
|
||||
|
||||
Reference in New Issue
Block a user