jasonjmcghee / plock

From anywhere you can type, query and stream the output of an LLM or any other script
MIT License
473 stars 31 forks source link

Fix get_context function to use mutable iterator in main.rs #7

Closed antmanler closed 10 months ago

antmanler commented 10 months ago

This pull request fixes the get_context function in main.rs to use a mutable iterator. Previously, the function used an immutable iterator, which caused issues when trying to replace certain parts of the prompt string. This change ensures that the function correctly replaces the desired parts of the prompt string and improves the overall functionality of the code.