jmont-dev / ollama-hpp

Modern, Header-only C++ bindings for the Ollama API.
MIT License
53 stars 7 forks source link

Support System prompt. #17

Closed JG-Adams closed 3 months ago

JG-Adams commented 3 months ago

Being able to customize the behavior of AI is very useful. I put system parameter before the option as overloading, so you could do it with and without system to use custom or the modelfile.

Any way to reduce code size would be welcomed.

JG-Adams commented 3 months ago

Only Generate would need system parameter as chat already support system. You encode that in message.