server: use random media marker (#21962)

* server: use random media marker

* nits

* remove legacy <__image__> token

* revert special char in random
This commit is contained in:
Xuan-Son Nguyen authored and GitHub committed 2026-04-15 23:52:22 +02:00
1 parent b3d758750a
commit 408225bb1a
5 files changed
+17 -11

No files matched your search

+3
View File
@@ -92,6 +92,9 @@ std::string random_string();
std::string gen_chatcmplid();
std::string gen_tool_call_id();
// get a random marker; note: each time the server restarts, the marker will be different
const char * get_media_marker();
//
// lora utils
//