项目文件夹

文件
Rohit C Prasad 7a7e2f90cd Add streaming support to chat completions (stream=True on create/acreate)
Providers yield unified OpenAI-shaped chunks: OpenAI/Ollama stream natively,
Anthropic events are normalized, and other providers get an async bridge over
any sync stream. Streaming is manual tool calling only (no max_turns/MCP).
2026-07-14 22:36:30 -07:00

11 行
289 B
Python

from .provider_interface import ProviderInterface
from .chat_completion_response import ChatCompletionResponse
from .chat_completion_chunk import (
ChatCompletionChunk,
ChoiceDelta,
ChoiceDeltaFunction,
ChoiceDeltaToolCall,
StreamChoice,
)
from .message import Message