Archived
Parse HYV3 native sectioned tool calls and tagged arguments
Use the existing RadChatFormat fields for the outer tool-call section, name separator and tagged values. Cover grammar, template replay, streaming at every truncation, section boundaries and OpenAI response lifting; leave the supports_reasoning adapter unchanged.
This commit is contained in:
1 parent
7621e4ac2b
commit
7e04bcac2b
11 files changed
+840
-34
No files matched your search
+1
-1
@@ -104,7 +104,7 @@ struct ChatFormat {
|
||||
/* ------------------------------------------------------------------ tool calls
|
||||
* `name_prefix` is what opens a call (after `call_open`, when there is one). Empty means the
|
||||
* format has no tool calls. */
|
||||
std::string section_open, section_close; /* around all calls; not read yet, must be empty */
|
||||
std::string section_open, section_close; /* around the complete list of calls */
|
||||
/* Between two calls, beyond whitespace (a JSON-array format would use ", "). Tagged calls are
|
||||
* self-delimiting. Not read yet, must be empty. */
|
||||
std::string call_separator;
|
||||
|
||||
Reference in new issue
Block a user