diff --git a/content/docs/en/guide/console/channel-management.mdx b/content/docs/en/guide/console/channel-management.mdx index 40c913a1..b7b3ca47 100644 --- a/content/docs/en/guide/console/channel-management.mdx +++ b/content/docs/en/guide/console/channel-management.mdx @@ -2,28 +2,17 @@ title: Channels --- -Here you can manage NewAPI's upstream channels +Here you can manage NewAPI's upstream Channels. -![渠道](/assets/guide/channel.png) +![Channels](/assets/guide/channel.png) ## Channel Creation/Editing Page -![渠道管理1](/assets/guide/create-channel-1.png) +![Channel Management 1](/assets/guide/create-channel-1.png) -![渠道管理2](/assets/guide/create-channel-2.png) +![Channel Management 2](/assets/guide/create-channel-2.png) -![渠道管理3](/assets/guide/create-channel-3.png) - -## Special Channel Parameters for Coding Plan Packages - -If using a Coding Plan package, the `API Address` field should not be filled with an actual URL, but with the corresponding special identifier: - -| Package Name | Channel Type Selection | API Address (Enter Identifier) | -| --- | --- | --- | -| GLM Coding Plan | Zhipu GLM 4V | `glm-coding-plan` | -| GLM Coding Plan (International Version) | Zhipu GLM 4V | `glm-coding-plan-international` | -| Kimi Coding Plan | Moonshot | `kimi-coding-plan` | -| Doubao Coding Plan | ByteDance Volcano Engine, Doubao General | Select `doubao-coding-plan` from dropdown | +![Channel Management 3](/assets/guide/create-channel-3.png) # Parameter Override Settings Documentation @@ -35,7 +24,7 @@ The parameter override system supports two modes: simple override mode (backward ### Simple Override Mode -For backward compatibility, directly specify the fields and values to be overridden, and the system will merge these fields into the original request. +Backward compatible, directly specify the fields and values to be overridden, and the system will merge these fields into the original request. ```json { @@ -47,7 +36,7 @@ For backward compatibility, directly specify the fields and values to be overrid ### Advanced Operation Mode -Define complex parameter operations using the `operations` array, supporting advanced features such as conditional judgments, array operations, string concatenation, and string normalization. +Define complex parameter operations through the `operations` array, supporting advanced features such as conditional judgments, array operations, string concatenation, and string normalization. #### Basic Structure @@ -65,13 +54,13 @@ Define complex parameter operations using the `operations` array, supporting adv } ``` -**Field Description (Fill as needed):** +**Field Description (fill as needed):** - `mode`: Required - `path`: Applicable to `set` / `delete` / `append` / `prepend` / `trim_prefix` / `trim_suffix` / `ensure_prefix` / `ensure_suffix` / `trim_space` / `to_lower` / `to_upper` / `replace` / `regex_replace` -- `value`: Commonly used with `set` / `append` / `prepend` / `trim_prefix` / `trim_suffix` / `ensure_prefix` / `ensure_suffix` +- `value`: Commonly used in `set` / `append` / `prepend` / `trim_prefix` / `trim_suffix` / `ensure_prefix` / `ensure_suffix` - `from` / `to`: Applicable to `move` / `copy` / `replace` / `regex_replace` -- `keep_origin`: Used for `set` (skips if value already exists) and for object merging in `append` / `prepend` +- `keep_origin`: Used for `set` (skips if value already exists) and for `append` / `prepend` during object merging. ## Operation Modes (mode) @@ -90,7 +79,7 @@ Sets the value at the specified path. **Parameter Description:** -- `keep_origin`: When `true`, skips setting if a value already exists at the target path. +- `keep_origin`: When `true`, if the target path already has a value, setting is skipped. ### 2. delete - Delete Field @@ -153,7 +142,7 @@ Adds new content before existing content. ### 6. copy - Copy Field -Copies the value from the `from` path to the `to` path (does not delete the source field). +Copies the value from the path specified by `from` to the path specified by `to` (does not delete the source field). ```json { @@ -170,7 +159,7 @@ Copies the value from the `from` path to the `to` path (does not delete the sour ### 7. trim_prefix - Trim Prefix -Removes the specified prefix from a string field (remains unchanged if no match). +Removes the specified prefix from a string field (if it doesn't match, it remains unchanged). ```json { @@ -186,7 +175,7 @@ Removes the specified prefix from a string field (remains unchanged if no match) ### 8. trim_suffix - Trim Suffix -Removes the specified suffix from a string field (remains unchanged if no match). +Removes the specified suffix from a string field (if it doesn't match, it remains unchanged). ```json { @@ -202,7 +191,7 @@ Removes the specified suffix from a string field (remains unchanged if no match) ### 9. ensure_prefix - Ensure Prefix -Ensures a string field starts with the specified prefix (remains unchanged if already present). +Ensures a string field starts with the specified prefix (if it already exists, it remains unchanged). ```json { @@ -218,7 +207,7 @@ Ensures a string field starts with the specified prefix (remains unchanged if al ### 10. ensure_suffix - Ensure Suffix -Ensures a string field ends with the specified suffix (remains unchanged if already present). +Ensures a string field ends with the specified suffix (if it already exists, it remains unchanged). ```json { @@ -232,7 +221,7 @@ Ensures a string field ends with the specified suffix (remains unchanged if alre - `value`: Required and cannot be an empty string. -### 11. trim_space - Trim Whitespace +### 11. trim_space - Trim Leading/Trailing Whitespace Performs `TrimSpace` on a string field (spaces, newlines, tabs, etc., will be removed). @@ -265,7 +254,7 @@ Converts a string field to uppercase. } ``` -### 14. replace - String Replacement +### 14. replace - String Replace Performs substring replacement on a string field. @@ -283,9 +272,9 @@ Performs substring replacement on a string field. - `from`: Required and cannot be an empty string. - `to`: Optional, equivalent to an empty string if omitted. -### 15. regex_replace - Regex Replacement +### 15. regex_replace - Regex Replace -Performs regex matching and replacement on a string field. +Performs regular expression matching and replacement on a string field. ```json { @@ -303,7 +292,7 @@ Performs regex matching and replacement on a string field. ## Conditional Judgment -Set conditions for operation execution using the `conditions` array; the corresponding operation will only be executed when the conditions are met. +Set the conditions for operation execution using the `conditions` array; the corresponding operation will only be executed when the conditions are met. ### Condition Structure @@ -334,36 +323,37 @@ Set conditions for operation execution using the `conditions` array; the corresp - `lte`: Less than or equal to (numeric types only) - Note: - * Numeric comparisons can only be used for numeric types. - * String operations (prefix, suffix, contains) will convert values to strings for comparison. + +* Numeric comparisons can only be used for numeric types. +* String operations (prefix, suffix, contains) will convert values to strings for comparison. ### Condition Parameter Description -- `invert`: Invert function, `true` means to negate the result. +- `invert`: Invert function, `true` means negate the result. - `pass_missing_key`: Behavior when the specified path does not exist. - - `true`: Condition passes if the path does not exist. - - `false`: Condition fails if the path does not exist (default). + - `true`: Condition passes if path does not exist. + - `false`: Condition does not pass if path does not exist (default). ### Logical Relationship (logic) - `AND`: All conditions must be met. -- `OR`: Any one condition being met is sufficient (default). +- `OR`: Any condition met is sufficient (default). ## Path Syntax Use JSON path syntax to access nested fields: - `temperature` - Root-level field -- `messages.0.content` - The `content` field of the first element in the array. -- `messages.-1.content` - The `content` field of the last element in the array. -- `metadata.user.name` - Nested object field +- `messages.0.content` - The content field of the first element in the array. +- `messages.-1.content` - The content field of the last element in the array. +- `metadata.user.name` - Nested object field. -Additionally, `path` supports the following built-in variables (which do not need to explicitly exist in the request body) and can be directly used for conditional judgments: +Additionally, `path` supports the following built-in variables (no need to explicitly exist in the request body), which can be directly used for conditional judgments: | Variable | Meaning | Typical Use | | --- | --- | --- | -| `model` / `upstream_model` | The target model after redirection | Conditional matching based on the actual upstream model called | -| `original_model` | The target model before redirection | Conditional matching based on the original model requested by the user | +| `model` / `upstream_model` | Target model after redirection | Conditional matching based on the actual upstream model called | +| `original_model` | Target model before redirection | Conditional matching based on the original model requested by the user | ## Practical Examples @@ -425,7 +415,7 @@ Add a system message at the beginning of the message array: ### 3. Adjust Parameters Based on Model Type -Set different `max_tokens` based on different models: +Set different max_tokens based on different models: ```json { @@ -460,7 +450,7 @@ Set different `max_tokens` based on different models: ### 4. Multiple Condition Combination (AND Logic) -Operations are executed only when multiple conditions are met simultaneously: +Execute the operation only when multiple conditions are met simultaneously: ```json { @@ -489,7 +479,7 @@ Operations are executed only when multiple conditions are met simultaneously: ### 5. Numeric Comparison Conditions -Perform conditional judgment based on numerical values: +Perform conditional judgment based on numerical size: ```json { @@ -574,6 +564,6 @@ Append instructions after the user message: } ``` -## Notes +## Important Notes -**Execution Order**: Operations are executed sequentially in the order they appear in the `operations` array; earlier operations may affect subsequent ones. \ No newline at end of file +**Execution Order**: Operations are executed sequentially according to their order in the `operations` array; earlier operations may affect subsequent operations. \ No newline at end of file diff --git a/content/docs/ja/guide/console/channel-management.mdx b/content/docs/ja/guide/console/channel-management.mdx index 74a37104..2b92ad09 100644 --- a/content/docs/ja/guide/console/channel-management.mdx +++ b/content/docs/ja/guide/console/channel-management.mdx @@ -2,7 +2,7 @@ title: チャネル --- -ここでは、NewAPI のアップストリームチャネルを管理できます。 +ここではNewAPIのアップストリームチャネルを管理できます ![チャネル](/assets/guide/channel.png) @@ -14,28 +14,17 @@ title: チャネル ![チャネル管理3](/assets/guide/create-channel-3.png) -## Coding Plan プランの特殊チャネルパラメータ - -Coding Plan プランを使用する場合、「API アドレス」フィールドには実際の URL ではなく、対応する特殊な識別子を入力してください。 - -| プラン名 | チャネルタイプ選択 | API アドレス(識別子を入力) | -| --- | --- | --- | -| GLM Coding Plan | 智譜 GLM 4V | `glm-coding-plan` | -| GLM Coding Plan (国際版) | 智譜 GLM 4V | `glm-coding-plan-international` | -| Kimi Coding Plan | Moonshot | `kimi-coding-plan` | -| Doubao Coding Plan | バイトダンス火山方舟、豆包汎用 | ドロップダウン選択`doubao-coding-plan` | - # パラメータ上書き設定ドキュメント ## 概要 -パラメータ上書きシステムは、シンプル上書きモード(前方互換性あり)と高度な操作モードの2つのモードをサポートしています。柔軟な条件判断と操作タイプにより、複雑なパラメータの動的な調整が可能です。 +パラメータ上書きシステムは、シンプル上書きモード(前方互換性あり)と高度な操作モードの2つのモードをサポートしています。柔軟な条件判断と操作タイプにより、複雑なパラメータの動的調整を実現できます。 ## 使用方法 ### シンプル上書きモード -前方互換性があり、上書きするフィールドと値を直接指定すると、システムはこれらのフィールドを元のリクエストにマージします。 +前方互換性があり、上書きするフィールドと値を直接指定します。システムはこれらのフィールドを元のリクエストにマージします。 ```json { @@ -47,7 +36,7 @@ Coding Plan プランを使用する場合、「API アドレス」フィール ### 高度な操作モード -`operations` 配列を介して複雑なパラメータ操作を定義し、条件判断、配列操作、文字列結合、文字列正規化などの高度な機能をサポートします。 +`operations` 配列を介して複雑なパラメータ操作を定義し、条件判断、配列操作、文字列結合、文字列正規化などの高度な機能をサポートしています。 #### 基本構造 @@ -65,7 +54,7 @@ Coding Plan プランを使用する場合、「API アドレス」フィール } ``` -**フィールドの説明(必要に応じて記入):** +**フィールドの説明(必要に応じて入力):** - `mode`: 必須 - `path`: `set` / `delete` / `append` / `prepend` / `trim_prefix` / `trim_suffix` / `ensure_prefix` / `ensure_suffix` / `trim_space` / `to_lower` / `to_upper` / `replace` / `regex_replace` に適用 @@ -75,9 +64,9 @@ Coding Plan プランを使用する場合、「API アドレス」フィール ## 操作モード (mode) -### 1. set - 値の設定 +### 1. set - 値を設定 -指定されたパスの値を設定します。 +指定されたパスの値を設定します ```json { @@ -88,13 +77,13 @@ Coding Plan プランを使用する場合、「API アドレス」フィール } ``` -**パラメータの説明:** +**パラメータ説明:** -- `keep_origin`: `true` の場合、ターゲットパスに既に値が存在すれば設定をスキップします。 +- `keep_origin`: `true` の場合、ターゲットパスに既に値が存在すれば設定をスキップします -### 2. delete - フィールドの削除 +### 2. delete - フィールドを削除 -指定されたパスのフィールドを削除します。 +指定されたパスのフィールドを削除します ```json { @@ -103,9 +92,9 @@ Coding Plan プランを使用する場合、「API アドレス」フィール } ``` -### 3. move - フィールドの移動 +### 3. move - フィールドを移動 -あるフィールドの値を別の位置に移動します。 +あるフィールドの値を別の位置に移動します ```json { @@ -115,15 +104,15 @@ Coding Plan プランを使用する場合、「API アドレス」フィール } ``` -### 4. append - 内容の追加 +### 4. append - 内容を追加 -既存の内容の後に新しい内容を追加します。 +既存の内容の後に新しい内容を追加します ```json { "path": "messages.0.content", "mode": "append", - "value": "\n\n請用中文回答。" + "value": "\n\n请用中文回答。" } ``` @@ -131,29 +120,29 @@ Coding Plan プランを使用する場合、「API アドレス」フィール - **文字列**: 元の文字列の末尾に追加 - **配列**: 配列の末尾に要素を追加(単一要素または配列の追加をサポート) -- **オブジェクト**: オブジェクト属性をマージ +- **オブジェクト**: オブジェクトプロパティをマージ -### 5. prepend - 内容の先頭追加 +### 5. prepend - 内容を前置 -既存の内容の前に新しい内容を追加します。 +既存の内容の前に新しい内容を追加します ```json { "path": "messages.0.content", "mode": "prepend", - "value": "重要提示:請仔細閱讀以下內容。\n\n" + "value": "重要提示:请仔细阅读以下内容。\n\n" } ``` **サポートされるデータ型:** -- **文字列**: 元の文字列の先頭に追加 +- **文字列**: 元の文字列の先頭に前置 - **配列**: 配列の先頭に要素を追加(単一要素または配列の追加をサポート) -- **オブジェクト**: オブジェクト属性をマージ +- **オブジェクト**: オブジェクトプロパティをマージ -### 6. copy - フィールドのコピー +### 6. copy - フィールドをコピー -`from` で指定されたパスの値を `to` で指定されたパスにコピーします(ソースフィールドは削除されません)。 +`from` で指定されたパスの値を `to` で指定されたパスにコピーします(ソースフィールドは削除されません) ```json { @@ -166,11 +155,11 @@ Coding Plan プランを使用する場合、「API アドレス」フィール **パラメータ要件:** - `from` / `to`: 必須 -- ソースパスが存在しない場合はエラーが発生します。 +- ソースパスが存在しない場合はエラーになります -### 7. trim_prefix - プレフィックスの削除 +### 7. trim_prefix - プレフィックスを削除 -文字列フィールドから指定されたプレフィックスを削除します(一致しない場合は変更なし)。 +文字列フィールドから指定されたプレフィックスを削除します(一致しない場合は変更なし) ```json { @@ -184,9 +173,9 @@ Coding Plan プランを使用する場合、「API アドレス」フィール - `value`: 必須 -### 8. trim_suffix - サフィックスの削除 +### 8. trim_suffix - サフィックスを削除 -文字列フィールドから指定されたサフィックスを削除します(一致しない場合は変更なし)。 +文字列フィールドから指定されたサフィックスを削除します(一致しない場合は変更なし) ```json { @@ -200,9 +189,9 @@ Coding Plan プランを使用する場合、「API アドレス」フィール - `value`: 必須 -### 9. ensure_prefix - プレフィックスの保証 +### 9. ensure_prefix - プレフィックスを保証 -文字列フィールドが指定されたプレフィックスで始まることを保証します(既に存在する場合は変更なし)。 +文字列フィールドが指定されたプレフィックスで始まることを保証します(既に存在する場合は変更なし) ```json { @@ -214,11 +203,11 @@ Coding Plan プランを使用する場合、「API アドレス」フィール **パラメータ要件:** -- `value`: 必須であり、空文字列であってはなりません。 +- `value`: 必須であり、空文字列であってはなりません -### 10. ensure_suffix - サフィックスの保証 +### 10. ensure_suffix - サフィックスを保証 -文字列フィールドが指定されたサフィックスで終わることを保証します(既に存在する場合は変更なし)。 +文字列フィールドが指定されたサフィックスで終わることを保証します(既に存在する場合は変更なし) ```json { @@ -230,11 +219,11 @@ Coding Plan プランを使用する場合、「API アドレス」フィール **パラメータ要件:** -- `value`: 必須であり、空文字列であってはなりません。 +- `value`: 必須であり、空文字列であってはなりません -### 11. trim_space - 先頭と末尾の空白の削除 +### 11. trim_space - 先頭と末尾の空白を削除 -文字列フィールドに対して `TrimSpace` を実行します(スペース、改行、タブなどがすべて削除されます)。 +文字列フィールドに対して `TrimSpace` を実行します(スペース、改行、タブなどが削除されます) ```json { @@ -245,7 +234,7 @@ Coding Plan プランを使用する場合、「API アドレス」フィール ### 12. to_lower - 小文字に変換 -文字列フィールドを小文字に変換します。 +文字列フィールドを小文字に変換します ```json { @@ -256,7 +245,7 @@ Coding Plan プランを使用する場合、「API アドレス」フィール ### 13. to_upper - 大文字に変換 -文字列フィールドを大文字に変換します。 +文字列フィールドを大文字に変換します ```json { @@ -265,9 +254,9 @@ Coding Plan プランを使用する場合、「API アドレス」フィール } ``` -### 14. replace - 文字列の置換 +### 14. replace - 文字列置換 -文字列フィールドに対して部分文字列の置換を実行します。 +文字列フィールドに対して部分文字列置換を実行します ```json { @@ -280,12 +269,12 @@ Coding Plan プランを使用する場合、「API アドレス」フィール **パラメータ要件:** -- `from`: 必須であり、空文字列であってはなりません。 -- `to`: オプション。省略した場合、空文字列と同等です。 +- `from`: 必須であり、空文字列であってはなりません +- `to`: オプション、省略時は空文字列と同等 -### 15. regex_replace - 正規表現による置換 +### 15. regex_replace - 正規表現置換 -文字列フィールドに対して正規表現によるマッチング置換を実行します。 +文字列フィールドに対して正規表現マッチング置換を実行します ```json { @@ -299,11 +288,11 @@ Coding Plan プランを使用する場合、「API アドレス」フィール **パラメータ要件:** - `from`: 必須(正規表現、Go regexp 構文) -- `to`: オプション。省略した場合、空文字列と同等です。 +- `to`: オプション、省略時は空文字列と同等 ## 条件判断 -`conditions` 配列を介して操作実行の条件を設定します。条件が満たされた場合にのみ、対応する操作が実行されます。 +`conditions` 配列を介して操作実行の条件を設定します。条件が満たされた場合にのみ対応する操作が実行されます。 ### 条件構造 @@ -335,42 +324,42 @@ Coding Plan プランを使用する場合、「API アドレス」フィール - 注意: -* 数値比較は数値型にのみ使用できます。 -* 文字列操作(prefix、suffix、contains)は、値を文字列に変換して比較します。 +* 数値比較は数値型にのみ使用できます +* 文字列操作(prefix、suffix、contains)は値を文字列に変換して比較します -### 条件パラメータの説明 +### 条件パラメータ説明 -- `invert`: 反転機能。`true` は結果を反転することを意味します。 +- `invert`: 反転機能、`true` は結果を反転することを意味します - `pass_missing_key`: 指定されたパスが存在しない場合の動作 - - `true`: パスが存在しない場合、条件は満たされます。 - - `false`: パスが存在しない場合、条件は満たされません(デフォルト)。 + - `true`: パスが存在しない場合、条件は通過します + - `false`: パスが存在しない場合、条件は通過しません(デフォルト) ### 論理関係 (logic) -- `AND`: すべての条件が満たされる必要があります。 -- `OR`: いずれかの条件が満たされれば十分です(デフォルト)。 +- `AND`: すべての条件が満たされる必要があります +- `OR`: いずれかの条件が満たされれば十分です(デフォルト) ## パス構文 -JSON パス構文を使用してネストされたフィールドにアクセスします。 +JSONパス構文を使用してネストされたフィールドにアクセスします: - `temperature` - ルートレベルのフィールド - `messages.0.content` - 配列の最初の要素の content フィールド - `messages.-1.content` - 配列の最後の要素の content フィールド - `metadata.user.name` - ネストされたオブジェクトフィールド -同時に、`path` は以下の組み込み変数(リクエストボディに明示的に存在する必要はありません)をサポートしており、条件判断に直接使用できます。 +同時に、`path` は以下の組み込み変数をサポートしており(リクエストボディに明示的に存在する必要はありません)、条件判断に直接使用できます: | 変数 | 意味 | 典型的な用途 | | --- | --- | --- | -| `model` / `upstream_model` | リダイレクト後のターゲットモデル | 実際に呼び出されたアップストリームモデルに基づいて条件をマッチング | -| `original_model` | リダイレクト前のターゲットモデル | ユーザーがリクエストした元のモデルに基づいて条件をマッチング | +| `model` / `upstream_model` | リダイレクト後のターゲットモデル | 実際に呼び出されるアップストリームモデルに基づいて条件マッチングを行う | +| `original_model` | リダイレクト前のターゲットモデル | ユーザーがリクエストした元のモデルに基づいて条件マッチングを行う | ## 実用例 ### 1. モデルパラメータの動的調整 -メッセージの内容に基づいて温度パラメータを動的に調整します。 +メッセージ内容に基づいて温度パラメータを動的に調整します: ```json { @@ -383,7 +372,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス { "path": "messages.0.content", "mode": "contains", - "value": "コード" + "value": "代码" } ] }, @@ -395,7 +384,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス { "path": "messages.0.content", "mode": "contains", - "value": "クリエイティブ" + "value": "创意" } ] } @@ -405,7 +394,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 2. システムプロンプトの追加 -メッセージ配列の先頭にシステムメッセージを追加します。 +メッセージ配列の先頭にシステムメッセージを追加します: ```json { @@ -416,7 +405,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス "value": [ { "role": "system", - "content": "あなたはプロのAIアシスタントです。常に丁寧でプロフェッショナルな態度を保ってください。" + "content": "你是一个专业的AI助手,请始终保持礼貌和专业。" } ] } @@ -426,7 +415,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 3. モデルタイプに応じたパラメータ調整 -異なるモデルに応じて異なる max_tokens を設定します。 +異なるモデルに応じて異なる max_tokens を設定します: ```json { @@ -461,7 +450,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 4. 複数条件の組み合わせ(ANDロジック) -複数の条件が同時に満たされた場合にのみ操作を実行します。 +複数の条件が同時に満たされた場合にのみ操作を実行します: ```json { @@ -479,7 +468,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス { "path": "messages.0.content", "mode": "contains", - "value": "長文" + "value": "长文" } ], "logic": "AND" @@ -490,7 +479,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 5. 数値比較条件 -数値の大小に基づいて条件を判断します。 +数値の大小に基づいて条件判断を行います: ```json { @@ -511,9 +500,9 @@ JSON パス構文を使用してネストされたフィールドにアクセス } ``` -### 6. 条件の反転 +### 6. 反転条件 -`invert` を使用して反転ロジックを実装します。 +`invert` を使用して反転ロジックを実装します: ```json { @@ -537,7 +526,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 7. 欠落フィールドの処理 -`pass_missing_key` を使用して、存在しない可能性のあるフィールドを処理します。 +`pass_missing_key` を使用して、存在しない可能性のあるフィールドを処理します: ```json { @@ -561,7 +550,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス ### 8. 文字列結合の例 -ユーザーメッセージの後に指示を追加します。 +ユーザーメッセージの後に指示を追加します: ```json { @@ -569,7 +558,7 @@ JSON パス構文を使用してネストされたフィールドにアクセス { "path": "messages.-1.content", "mode": "append", - "value": "\n\nあなたの思考プロセスを詳しく説明してください。" + "value": "\n\n请详细解释你的思考过程。" } ] } @@ -577,4 +566,4 @@ JSON パス構文を使用してネストされたフィールドにアクセス ## 注意事項 -**実行順序**: 操作は `operations` 配列内の順序で順次実行され、前の操作が後続の操作に影響を与えます。 \ No newline at end of file +**実行順序**: 操作は `operations` 配列に定義された順序で実行され、前の操作は後続の操作に影響を与えます \ No newline at end of file