Skip to content

Commit

Permalink
Merge pull request #685 from thedadams/remove-sdk-timeout
Browse files Browse the repository at this point in the history
fix: stop timing out SDK runs after 15 minutes
  • Loading branch information
thedadams authored Jul 31, 2024
2 parents 498381d + 1bc416d commit 7ff3fa1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/sdkserver/routes.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sdkserver

import (
"context"
"encoding/json"
"fmt"
"io"
Expand All @@ -10,7 +9,6 @@ import (
"sort"
"strings"
"sync"
"time"

"github.com/gptscript-ai/broadcaster"
"github.com/gptscript-ai/gptscript/pkg/cache"
Expand All @@ -26,8 +24,6 @@ import (
"github.com/gptscript-ai/gptscript/pkg/version"
)

const toolRunTimeout = 15 * time.Minute

type server struct {
gptscriptOpts gptscript.Options
address, token string
Expand Down Expand Up @@ -158,8 +154,6 @@ func (s *server) execHandler(w http.ResponseWriter, r *http.Request) {

ctx := gserver.ContextWithNewRunID(r.Context())
runID := gserver.RunIDFromContext(ctx)
ctx, cancel := context.WithTimeout(ctx, toolRunTimeout)
defer cancel()

// Ensure chat state is not empty.
if reqObject.ChatState == "" {
Expand Down

0 comments on commit 7ff3fa1

Please sign in to comment.