File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 11package sdkserver
22
33import (
4- "context"
54 "encoding/json"
65 "fmt"
76 "io"
@@ -10,7 +9,6 @@ import (
109 "sort"
1110 "strings"
1211 "sync"
13- "time"
1412
1513 "github.com/gptscript-ai/broadcaster"
1614 "github.com/gptscript-ai/gptscript/pkg/cache"
@@ -26,8 +24,6 @@ import (
2624 "github.com/gptscript-ai/gptscript/pkg/version"
2725)
2826
29- const toolRunTimeout = 15 * time .Minute
30-
3127type server struct {
3228 gptscriptOpts gptscript.Options
3329 address , token string
@@ -158,8 +154,6 @@ func (s *server) execHandler(w http.ResponseWriter, r *http.Request) {
158154
159155 ctx := gserver .ContextWithNewRunID (r .Context ())
160156 runID := gserver .RunIDFromContext (ctx )
161- ctx , cancel := context .WithTimeout (ctx , toolRunTimeout )
162- defer cancel ()
163157
164158 // Ensure chat state is not empty.
165159 if reqObject .ChatState == "" {
You can’t perform that action at this time.
0 commit comments