Skip to content

Commit 454f6ba

Browse files
authored
Default Ollama to use llama3.2 (#889)
* Default Ollama to use llama3.2 * Update tests for llama3.2 * DRY it up a bit * Add VCR cassettes
1 parent 4b447e3 commit 454f6ba

11 files changed

+228
-343
lines changed

lib/langchain/llm/ollama.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class Ollama < Base
1212

1313
DEFAULTS = {
1414
temperature: 0.0,
15-
completion_model: "llama3.1",
16-
embedding_model: "llama3.1",
17-
chat_model: "llama3.1",
15+
completion_model: "llama3.2",
16+
embedding_model: "llama3.2",
17+
chat_model: "llama3.2",
1818
options: {}
1919
}.freeze
2020

@@ -24,6 +24,7 @@ class Ollama < Base
2424
llama2: 4_096,
2525
llama3: 4_096,
2626
"llama3.1": 4_096,
27+
"llama3.2": 4_096,
2728
llava: 4_096,
2829
mistral: 4_096,
2930
"mistral-openorca": 4_096,

spec/fixtures/vcr_cassettes/Langchain_LLM_HuggingFace_default_dimensions_when_the_dimensions_size_is_generated_by_the_model_sets_the_dimensions_to_1_024.yml

Lines changed: 53 additions & 53 deletions
Large diffs are not rendered by default.

spec/fixtures/vcr_cassettes/Langchain_LLM_Ollama_chat_returns_a_chat_completion.yml

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/vcr_cassettes/Langchain_LLM_Ollama_chat_returns_a_chat_completion_format_json.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)