wrapper.ProcessStreamingResponseBody details #2797
victorserbu2709
started this conversation in
General
Replies: 1 comment
-
No, it's not. In fact, the Claude provider implementation isn't correct. You can check out the logic in main.go here ( https://github.com/alibaba/higress/blob/main/plugins/wasm-go/extensions/ai-proxy/main.go#L342 ). And it is recommended to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I would like to know more about wrapper.ProcessStreamingResponseBody.
Specifically, in https://github.com/alibaba/higress/blob/main/plugins/wasm-go/extensions/ai-proxy/main.go#L351 i see following example logs:
It is quaranteed that onStreamingResponseBody is called with complete chunks? (I would like to know if it is possible that a data: line to contain a truncated json, because this would break for example https://github.com/alibaba/higress/blob/main/plugins/wasm-go/extensions/ai-proxy/provider/claude.go#L222)
Also, it is possible to know what is the maximum time or body response size that is buffered until onStreamingResponseBody is called?
Beta Was this translation helpful? Give feedback.
All reactions