Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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