File tree 4 files changed +15
-7
lines changed
4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ module github.com/obot-platform/obot
3
3
go 1.24.0
4
4
5
5
replace (
6
+ github.com/gptscript-ai/go-gptscript => /Users/grant/devel/go-gptscript
7
+ github.com/gptscript-ai/gptscript => /Users/grant/devel/gptscript
6
8
github.com/obot-platform/obot/apiclient => ./apiclient
7
9
github.com/obot-platform/obot/logger => ./logger
8
10
)
@@ -16,7 +18,7 @@ require (
16
18
github.com/golang-jwt/jwt/v5 v5.2.1
17
19
github.com/google/uuid v1.6.0
18
20
github.com/gorilla/websocket v1.5.0
19
- github.com/gptscript-ai/chat-completion-client v0.0.0-20250128181713-57857b74f9f1
21
+ github.com/gptscript-ai/chat-completion-client v0.0.0-20250224164718-139cb4507b1d
20
22
github.com/gptscript-ai/cmd v0.0.0-20250122115124-a3d65e9d2432
21
23
github.com/gptscript-ai/go-gptscript v0.9.6-0.20250222170845-eee4337500a6
22
24
github.com/gptscript-ai/gptscript v0.9.6-0.20250222165900-86e85f032cc9
Original file line number Diff line number Diff line change @@ -295,14 +295,10 @@ github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWm
295
295
github.com/gorilla/websocket v1.5.0 /go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE =
296
296
github.com/gptscript-ai/broadcaster v0.0.0-20240625175512-c43682019b86 h1:m9yLtIEd0z1ia8qFjq3u0Ozb6QKwidyL856JLJp6nbA =
297
297
github.com/gptscript-ai/broadcaster v0.0.0-20240625175512-c43682019b86 /go.mod h1:lK3K5EZx4dyT24UG3yCt0wmspkYqrj4D/8kxdN3relk =
298
- github.com/gptscript-ai/chat-completion-client v0.0.0-20250128181713-57857b74f9f1 h1:D8VmhL68Fm6YI7fue4wkzd1TqODn//LtcJtPvWk8BQ8 =
299
- github.com/gptscript-ai/chat-completion-client v0.0.0-20250128181713-57857b74f9f1 /go.mod h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo =
298
+ github.com/gptscript-ai/chat-completion-client v0.0.0-20250224164718-139cb4507b1d h1:p5uqZufDIMQzAALblZFkr8fwbnZbFXbBCR1ZMAFylXk =
299
+ github.com/gptscript-ai/chat-completion-client v0.0.0-20250224164718-139cb4507b1d /go.mod h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo =
300
300
github.com/gptscript-ai/cmd v0.0.0-20250122115124-a3d65e9d2432 h1:cJh/Hl1HFd1qLpdkaZvsFTC2mXlIuiK7FgvSfaSOWmw =
301
301
github.com/gptscript-ai/cmd v0.0.0-20250122115124-a3d65e9d2432 /go.mod h1:DJAo1xTht1LDkNYFNydVjTHd576TC7MlpsVRl3oloVw =
302
- github.com/gptscript-ai/go-gptscript v0.9.6-0.20250222170845-eee4337500a6 h1:vsZ09cWfNWUXT6AOVQc1GpfEdIxcLusUs6Hgo9IgAKs =
303
- github.com/gptscript-ai/go-gptscript v0.9.6-0.20250222170845-eee4337500a6 /go.mod h1:QvGPZoRuAiA8P5EzPI05kTrs+LZ0ipHywUGsKruSknw =
304
- github.com/gptscript-ai/gptscript v0.9.6-0.20250222165900-86e85f032cc9 h1:TIHbI5k7kwv/ijm8qzjoBRh6DRq1FtjP+OLYu9dfDA8 =
305
- github.com/gptscript-ai/gptscript v0.9.6-0.20250222165900-86e85f032cc9 /go.mod h1:uvb92bYHRX9wFHSS1jkg5Y7GBQgTb8iHP+l/wPsWCx8 =
306
302
github.com/gptscript-ai/tui v0.0.0-20250204145344-33cd15de4cee h1:70PHW6Xw70yNNZ5aX936XqcMLwNmfMZpCV3FCOGKpxE =
307
303
github.com/gptscript-ai/tui v0.0.0-20250204145344-33cd15de4cee /go.mod h1:iwHxuueg2paOak7zIg0ESBWx7A0wIHGopAratbgaPNY =
308
304
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM =
Original file line number Diff line number Diff line change @@ -51,3 +51,12 @@ func convertCredential(cred gptscript.Credential) types.Credential {
51
51
ExpiresAt : types .NewTimeFromPointer (cred .ExpiresAt ),
52
52
}
53
53
}
54
+
55
+ func RecreateAllCredentials (req api.Context ) error {
56
+ err := req .GPTClient .RecreateAllCredentials (req .Context ())
57
+ if err != nil {
58
+ return err
59
+ }
60
+
61
+ return nil
62
+ }
Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ func Router(services *services.Services) (http.Handler, error) {
282
282
mux .HandleFunc ("DELETE /api/agents/{context}/credentials/{id}" , handlers .DeleteCredential )
283
283
mux .HandleFunc ("GET /api/credentials" , handlers .ListCredentials )
284
284
mux .HandleFunc ("DELETE /api/credentials/{id}" , handlers .DeleteCredential )
285
+ mux .HandleFunc ("POST /api/credentials/recreate-all" , handlers .RecreateAllCredentials )
285
286
mux .HandleFunc ("GET /api/threads/{context}/credentials" , handlers .ListCredentials )
286
287
mux .HandleFunc ("DELETE /api/threads/{context}/credentials/{id}" , handlers .DeleteCredential )
287
288
You can’t perform that action at this time.
0 commit comments