MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / InjectStream

Method InjectStream

internal/toolinjection/format_openai.go:25–27  ·  view source on GitHub ↗
(dataChan <-chan []byte, rule *config.ToolCallInjectionRule, model string)

Source from the content-addressed store, hash-verified

23}
24
25func (openaiFormat) InjectStream(dataChan <-chan []byte, rule *config.ToolCallInjectionRule, model string) <-chan []byte {
26 return InjectOpenAIStream(dataChan, rule, model)
27}
28
29func (openaiFormat) StripAndCapture(rawJSON []byte) ([]byte, []CapturedResult) {
30 return stripAndCaptureOpenAI(rawJSON)

Callers

nothing calls this directly

Calls 1

InjectOpenAIStreamFunction · 0.85

Tested by

no test coverage detected