| 125 | } |
| 126 | |
| 127 | static bool prompt_contains_image(const std::string& prompt) { |
| 128 | size_t begin, end; |
| 129 | find_image_tag_in_prompt(prompt, begin, end); |
| 130 | return (begin != std::string::npos); |
| 131 | } |
| 132 | |
| 133 | // replaces the base64 image tag in the prompt with `replacement` |
| 134 | static llava_image_embed * llava_image_embed_make_with_prompt_base64(struct clip_ctx * ctx_clip, int n_threads, const std::string& prompt) { |
no test coverage detected