kevinthedang / discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.
Creative Commons Attribution 4.0 International
42 stars 4 forks source link

Chat Stream Integration #52

Closed kevinthedang closed 2 months ago

kevinthedang commented 2 months ago

Added

await ollama.chat({
    model: tokens.model,
    messages: msgHist.getItems(),
    options: {
        num_thread: 8, // remove if optimization needed further
        mirostat: 1,
        mirostat_tau: 2.0,
        top_k: 70
    },
    stream: <some_var_name>
})

It does not like the fact that you put a variable there... sad, but it still works otherwise.

Removed