ai-connector@0.0.7
·
7233 commits
to main
since this release
Patch Changes
- fdfef52: - Splits the
EventSourceparser into a reusable helper- Uses a
TransformStreamfor this, so the stream respects back-pressure - Splits the "forking" stream for callbacks into a reusable helper
- Changes the signature for
customParserto avoid Stringify -> Encode -> Decode -> Parse round trip - Uses ?.() optional call syntax for callbacks
- Uses string.includes to perform newline checking
- Handles the
nullres.bodycase - Fixes Anthropic's streaming responses
- Anthropic returns cumulative responses, not deltas like OpenAI
- https://github.com/hwchase17/langchain/blob/3af36943/langchain/llms/anthropic.py#L190-L193
- Uses a