common : support deferred tools and tool_reference content parts (#31256)
* common : support deferred tools and tool_reference content parts Assisted-by: Claude Opus 5.5 * common : credit the deferred tools co-author Co-authored-by: Aldehir Rojas <765227+aldehir@users.noreply.github.com> Assisted-by: Claude Opus 5.5 * tests : fix the type check of the deferred tools test Assisted-by: Claude Opus 5.5
This commit is contained in:
1 parent
6c44591049
commit
eb7818c0b8
9 files changed
+220
-24
No files matched your search
@@ -1316,7 +1316,7 @@ static void oaicompat_content_load_media(json & content, const server_chat_param
|
||||
p.erase("input_video");
|
||||
p.erase("video_url");
|
||||
|
||||
} else if (type != "text") {
|
||||
} else if (type != "text" && type != "tool_reference") {
|
||||
throw std::invalid_argument("unsupported content[].type");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user