Unverified Commit 25221b44 authored by Xu Song's avatar Xu Song Committed by GitHub
Browse files

Add more docs for regex (#30106)


Signed-off-by: default avatarXu Song <xusong.vip@gmail.com>
Co-authored-by: default avatargemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent 8580919a
...@@ -61,7 +61,7 @@ Now let´s see an example for each of the cases, starting with the `choice`, as ...@@ -61,7 +61,7 @@ Now let´s see an example for each of the cases, starting with the `choice`, as
print(completion.choices[0].message.content) print(completion.choices[0].message.content)
``` ```
The next example shows how to use the `regex`. The idea is to generate an email address, given a simple regex template: The next example shows how to use the `regex`. The supported regex syntax depends on the structured output backend. For example, `xgrammar`, `guidance`, and `outlines` use Rust-style regex, while `lm-format-enforcer` uses Python's `re` module. The idea is to generate an email address, given a simple regex template:
??? code ??? code
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment