Skip to content

Commit

Permalink
Default Ollama to use llama3.2 (#889)
Browse files Browse the repository at this point in the history
* Default Ollama to use llama3.2

* Update tests for llama3.2

* DRY it up a bit

* Add VCR cassettes
  • Loading branch information
WToa authored Dec 2, 2024
1 parent 4b447e3 commit 454f6ba
Show file tree
Hide file tree
Showing 11 changed files with 228 additions and 343 deletions.
7 changes: 4 additions & 3 deletions lib/langchain/llm/ollama.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class Ollama < Base

DEFAULTS = {
temperature: 0.0,
completion_model: "llama3.1",
embedding_model: "llama3.1",
chat_model: "llama3.1",
completion_model: "llama3.2",
embedding_model: "llama3.2",
chat_model: "llama3.2",
options: {}
}.freeze

Expand All @@ -24,6 +24,7 @@ class Ollama < Base
llama2: 4_096,
llama3: 4_096,
"llama3.1": 4_096,
"llama3.2": 4_096,
llava: 4_096,
mistral: 4_096,
"mistral-openorca": 4_096,
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 454f6ba

Please sign in to comment.