omagdy7 / ollama-logseq

Logseq plugin to integerate with ollama
MIT License
167 stars 15 forks source link

When prompt from block, use the properties to pass #9

Closed taweili closed 6 months ago

taweili commented 6 months ago

Properties to configure Ollama, e.g. specify the models and turn the model parameters per Ollama generate API.

Add this property to the block and the Prompt from Block will use the model specify here. ollama-generate-model:: llama2-uncensored:7b-chat-q6_K

Any property prefixed with ollama-generate will be passed to Ollama in a generate API call.

https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-a-completion