• Unified OpenAI/Azure client creation • Azure module now re-exports functions • Backward compatibility maintained • Reduced code duplication
22 lines
630 B
Python
22 lines
630 B
Python
"""
|
|
Azure OpenAI compatibility layer.
|
|
|
|
This module provides backward compatibility by re-exporting Azure OpenAI functions
|
|
from the main openai module where the actual implementation resides.
|
|
|
|
All core logic for both OpenAI and Azure OpenAI now lives in lightrag.llm.openai,
|
|
with this module serving as a thin compatibility wrapper for existing code that
|
|
imports from lightrag.llm.azure_openai.
|
|
"""
|
|
|
|
from lightrag.llm.openai import (
|
|
azure_openai_complete_if_cache,
|
|
azure_openai_complete,
|
|
azure_openai_embed,
|
|
)
|
|
|
|
__all__ = [
|
|
"azure_openai_complete_if_cache",
|
|
"azure_openai_complete",
|
|
"azure_openai_embed",
|
|
]
|