C-Loftus / talon-ai-tools

Query LLMs and AI tools with voice commands
MIT License
39 stars 14 forks source link

Strip markdown that is output despite our prompting #70

Closed C-Loftus closed 3 weeks ago

C-Loftus commented 3 weeks ago

Sometimes with the model responses, even though we explicitly tell it not to output markdown syntax, it still does it. This PR uses a regex to remove the wrapper.

It also implements pytest since this is just a pure function and thus can be tested more easily.