File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 1
1
package sdkserver
2
2
3
3
import (
4
- "context"
5
4
"encoding/json"
6
5
"fmt"
7
6
"io"
@@ -10,7 +9,6 @@ import (
10
9
"sort"
11
10
"strings"
12
11
"sync"
13
- "time"
14
12
15
13
"github.com/gptscript-ai/broadcaster"
16
14
"github.com/gptscript-ai/gptscript/pkg/cache"
@@ -26,8 +24,6 @@ import (
26
24
"github.com/gptscript-ai/gptscript/pkg/version"
27
25
)
28
26
29
- const toolRunTimeout = 15 * time .Minute
30
-
31
27
type server struct {
32
28
gptscriptOpts gptscript.Options
33
29
address , token string
@@ -158,8 +154,6 @@ func (s *server) execHandler(w http.ResponseWriter, r *http.Request) {
158
154
159
155
ctx := gserver .ContextWithNewRunID (r .Context ())
160
156
runID := gserver .RunIDFromContext (ctx )
161
- ctx , cancel := context .WithTimeout (ctx , toolRunTimeout )
162
- defer cancel ()
163
157
164
158
// Ensure chat state is not empty.
165
159
if reqObject .ChatState == "" {
You can’t perform that action at this time.
0 commit comments