Commit 04af977
Fix Python Quick Start example to compile with current SDK (#1310)
The Quick Start snippet in python/README.md called create_session(model=...) without the required keyword-only on_permission_request argument, so running it raised: TypeError: CopilotClient.create_session() missing 1 required keyword-only argument: 'on_permission_request'.
Add the PermissionHandler import and pass on_permission_request=PermissionHandler.approve_all. Apply the same one-line fix to the API Reference snippet directly below, which had the identical bug.
Fixes #1079
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 709fe4b commit 04af977
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
| |||
0 commit comments