Skip to content

Commit

Permalink
feat: Enable :inet6 for Req.new (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpope9 authored Jan 9, 2025
1 parent 8c7e9b7 commit eabfc6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/chat_models/chat_ollama_ai.ex
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ defmodule LangChain.ChatModels.ChatOllamaAI do
receive_timeout: ollama_ai.receive_timeout,
retry: :transient,
max_retries: 3,
inet6: true,
retry_delay: fn attempt -> 300 * attempt end
)

Expand Down Expand Up @@ -336,6 +337,7 @@ defmodule LangChain.ChatModels.ChatOllamaAI do
Req.new(
url: ollama_ai.endpoint,
json: for_api(ollama_ai, messages, functions),
inet6: true,
receive_timeout: ollama_ai.receive_timeout
)
|> Req.post(
Expand Down

0 comments on commit eabfc6a

Please sign in to comment.