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
2026-04-15 23:52:22 +02:00
committed by GitHub
parent b3d758750a
commit 408225bb1a
5 changed files with 17 additions and 11 deletions
+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
//