| 64 | } |
| 65 | |
| 66 | int ModelRunner::EvalFile(const std::string& prompt_file) { |
| 67 | std::cout << "Reading prompts from: " << prompt_file << "\n"; |
| 68 | |
| 69 | auto prompts = ReadPromptsFromFile(prompt_file); |
| 70 | if (prompts.empty()) { |
| 71 | std::cerr << "Error: Prompt file is empty or could not be read" << std::endl; |
| 72 | return 1; |
| 73 | } |
| 74 | |
| 75 | return EvalPrompts(prompts); |
| 76 | } |
| 77 | |
| 78 | void ModelRunner::InteractiveChat() { |
| 79 | std::cout << "🚀 Starting interactive chat mode...\n"; |