Fix doc-test failure in GLM adapter
Use quadruple backticks for outer code fence to properly escape the nested code fence example showing JSON format.
This commit is contained in:
@@ -9,11 +9,11 @@
|
|||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! 2. Code-fenced JSON (when following system prompt instructions):
|
//! 2. Code-fenced JSON (when following system prompt instructions):
|
||||||
//! ```text
|
//! ````text
|
||||||
//! ```json
|
//! ```json
|
||||||
//! {"tool": "shell", "args": {"command": "ls"}}
|
//! {"tool": "shell", "args": {"command": "ls"}}
|
||||||
//! ```
|
//! ```
|
||||||
//! ```
|
//! ````
|
||||||
//!
|
//!
|
||||||
//! This adapter handles both formats and strips code fences when present.
|
//! This adapter handles both formats and strips code fences when present.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user