This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit 8480351
Make copilot integration tests pass on the replace-litellm branch (#1109)
* Fix copilot secret unredaction
The copilot provider always sends `cleanup_sensitive` set to `False` as it
manages the context itself. On streams where `finish_stream` was set to
`False` as well, we would have yielded the rest of the context buffer though
which would break secret unredaction.
To reproduce, ask Copilot to make a simple modification in a file
containing secrets so that it's forced to print the secrets back to you.
* Port recent copilot change to the new chunk API1 parent b71f65d commit 8480351
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
875 | | - | |
| 874 | + | |
876 | 875 | | |
877 | 876 | | |
878 | 877 | | |
879 | 878 | | |
880 | 879 | | |
881 | | - | |
| 880 | + | |
882 | 881 | | |
883 | | - | |
| 882 | + | |
884 | 883 | | |
885 | 884 | | |
886 | 885 | | |
| |||
0 commit comments