botserver/src
Rodrigo Rodriguez (Pragmatismo) 035d867c2f feat(llm): add message parsing for OpenAI client
Added parse_messages method to handle structured prompt input for OpenAI API. The method converts human/bot/compact prefixes to appropriate OpenAI roles (user/assistant/system) and properly formats multi-line messages. This enables more complex conversation structures in prompts while maintaining compatibility with the OpenAI API format.

Removed the direct prompt-to-message conversion in generate and generate_stream methods, replacing it with the new parse_messages utility. Also reorganized the impl blocks for better code organization.
2025-11-11 21:13:12 -03:00
..
auth feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
automation feat(automation): refactor prompt compaction logic 2025-11-11 19:23:04 -03:00
basic feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
bootstrap feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
bot feat(automation): refactor prompt compaction logic 2025-11-11 19:23:04 -03:00
channels feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
config feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
context feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
drive_monitor feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
email feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
file feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
llm feat(llm): add message parsing for OpenAI client 2025-11-11 21:13:12 -03:00
llm_models feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
meet feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
nvidia feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
package_manager feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
riot_compiler feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
session feat(automation): refactor prompt compaction logic 2025-11-11 19:23:04 -03:00
shared feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
tests feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
ui feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
ui_tree feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
web_server feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00
lib.rs feat: remove unused dependencies and clean up Cargo.lock 2025-11-05 13:46:03 -03:00
main.rs feat(automation): improve prompt compaction scheduling and error handling 2025-11-11 15:01:57 -03:00
main.test.rs feat: refactor prompt compaction and clean up test files 2025-11-11 18:32:52 -03:00