Fix: cannot create session github copilot
This commit is contained in:
parent
79b0568d75
commit
ba1538f31d
1 changed files with 3 additions and 2 deletions
|
|
@ -41,8 +41,9 @@ func NewGitHubCopilotProvider(uri string, connectMode string, model string) (*Gi
|
||||||
}
|
}
|
||||||
|
|
||||||
session, err := client.CreateSession(context.Background(), &copilot.SessionConfig{
|
session, err := client.CreateSession(context.Background(), &copilot.SessionConfig{
|
||||||
Model: model,
|
Model: model,,
|
||||||
Hooks: &copilot.SessionHooks{},
|
OnPermissionRequest: copilot.PermissionHandler.ApproveAll,
|
||||||
|
Hooks: &copilot.SessionHooks{}
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Stop()
|
client.Stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue