Skip to content

Commit 61a792b

Browse files
authored
chore: change blocking request timeouts to 10m (#118)
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent ff3a3c6 commit 61a792b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

intercept/chatcompletions/blocking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (i *BlockingInterception) ProcessRequest(w http.ResponseWriter, r *http.Req
7474
for {
7575
// TODO add outer loop span (https://github.com/coder/aibridge/issues/67)
7676
var opts []option.RequestOption
77-
opts = append(opts, option.WithRequestTimeout(time.Second*60)) // TODO: configurable timeout
77+
opts = append(opts, option.WithRequestTimeout(time.Second*600))
7878

7979
completion, err = i.newChatCompletion(ctx, svc, opts)
8080
if err != nil {

intercept/messages/blocking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (i *BlockingInterception) ProcessRequest(w http.ResponseWriter, r *http.Req
7070
}
7171
}
7272

73-
opts := []option.RequestOption{option.WithRequestTimeout(time.Second * 60)} // TODO: configurable timeout
73+
opts := []option.RequestOption{option.WithRequestTimeout(time.Second * 600)}
7474

7575
svc, err := i.newMessagesService(ctx, opts...)
7676
if err != nil {

intercept/responses/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
const (
33-
requestTimeout = time.Second * 60 // TODO: configurable timeout
33+
requestTimeout = time.Second * 600
3434
)
3535

3636
type responsesInterceptionBase struct {

0 commit comments

Comments
 (0)