Skip to content

Commit

Permalink
Update ollama.ex
Browse files Browse the repository at this point in the history
Adding raw boolean options for generate endpoint
  • Loading branch information
nyo16 authored Mar 24, 2024
1 parent 98090ea commit 8f519a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ollama.ex
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ defmodule Ollama do
type: :string,
doc: "Set the expected format of the response (`json`).",
],
raw: [
type: :boolean,
default: false,
doc: "if true no formatting will be applied to the prompt. You may choose to use the raw parameter if you are specifying a full templated prompt in your request to the API",
],
stream: [
type: {:or, [:boolean, :pid]},
default: false,
Expand Down

0 comments on commit 8f519a0

Please sign in to comment.