Skip to content

Commit 8ecad90

Browse files
authored
fix: sdkserver: rename credentialContext to credentialContexts (#855)
Signed-off-by: Grant Linville <[email protected]>
1 parent 354541c commit 8ecad90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/sdkserver/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (s *server) execHandler(w http.ResponseWriter, r *http.Request) {
188188
OpenAI: openai.Options(reqObject.openAIOptions),
189189
Env: reqObject.Env,
190190
Workspace: reqObject.Workspace,
191-
CredentialContexts: reqObject.CredentialContext,
191+
CredentialContexts: reqObject.CredentialContexts,
192192
Runner: runner.Options{
193193
// Set the monitor factory so that we can get events from the server.
194194
MonitorFactory: NewSessionFactory(s.events),

pkg/sdkserver/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type toolOrFileRequest struct {
5858
ChatState string `json:"chatState"`
5959
Workspace string `json:"workspace"`
6060
Env []string `json:"env"`
61-
CredentialContext []string `json:"credentialContext"`
61+
CredentialContexts []string `json:"credentialContexts"`
6262
CredentialOverrides []string `json:"credentialOverrides"`
6363
Confirm bool `json:"confirm"`
6464
Location string `json:"location,omitempty"`

0 commit comments

Comments
 (0)