forked from azmaveth/ex_llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreaming_timeout_fix.patch
More file actions
29 lines (26 loc) · 1.02 KB
/
streaming_timeout_fix.patch
File metadata and controls
29 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/lib/ex_llm/plugs/execute_stream_request.ex
+++ b/lib/ex_llm/plugs/execute_stream_request.ex
@@ -90,7 +90,7 @@ defmodule ExLLM.Plugs.ExecuteStreamRequest do
# Get configurable timeout from request options, config, or default
stream_timeout =
request.options[:timeout] ||
- request.config[:timeout] ||
+ request.config[:streaming_timeout] ||
opts[:timeout] ||
@default_timeout
@@ -116,7 +116,7 @@ defmodule ExLLM.Plugs.ExecuteStreamRequest do
# Get configurable timeout
stream_timeout =
request.options[:timeout] ||
- request.config[:timeout] ||
+ request.config[:streaming_timeout] ||
opts[:timeout] ||
@default_timeout
@@ -204,7 +204,7 @@ defmodule ExLLM.Plugs.ExecuteStreamRequest do
# Get configurable timeout
stream_timeout =
request.options[:timeout] ||
- request.config[:timeout] ||
+ request.config[:streaming_timeout] ||
opts[:timeout] ||
@default_timeout