_stream() — langchain Function Reference
Architecture documentation for the _stream() function in azure.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6f97cd6e_2d6f_17f8_f748_e788a19e0b19["_stream()"] 4b940a4c_8618_3ca0_9fa5_c378f5b8f6ac["AzureChatOpenAI"] 6f97cd6e_2d6f_17f8_f748_e788a19e0b19 -->|defined in| 4b940a4c_8618_3ca0_9fa5_c378f5b8f6ac style 6f97cd6e_2d6f_17f8_f748_e788a19e0b19 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/azure.py lines 816–820
def _stream(self, *args: Any, **kwargs: Any) -> Iterator[ChatGenerationChunk]:
"""Route to Chat Completions or Responses API."""
if self._use_responses_api({**kwargs, **self.model_kwargs}):
return super()._stream_responses(*args, **kwargs)
return super()._stream(*args, **kwargs)
Domain
Subdomains
Source
Frequently Asked Questions
What does _stream() do?
_stream() is a function in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/azure.py.
Where is _stream() defined?
_stream() is defined in libs/partners/openai/langchain_openai/chat_models/azure.py at line 816.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free