Skip to content

Commit 7ff3fa1

Browse files
authored
Merge pull request #685 from thedadams/remove-sdk-timeout
fix: stop timing out SDK runs after 15 minutes
2 parents 498381d + 1bc416d commit 7ff3fa1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/sdkserver/routes.go

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package sdkserver
22

33
import (
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-
3127
type 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 == "" {

0 commit comments

Comments
 (0)