This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit b3748eb
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 0421bd8 commit b3748eb
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
878 | | - | |
| 877 | + | |
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
883 | 882 | | |
884 | | - | |
| 883 | + | |
885 | 884 | | |
886 | | - | |
| 885 | + | |
887 | 886 | | |
888 | 887 | | |
889 | 888 | | |
| |||
0 commit comments