Format entire codebase with ruff and add type hints across all modules: - Apply ruff formatting to all Python files (121 files, 17K insertions) - Add type hints to function signatures throughout lightrag core and API - Update test suite with improved type annotations and docstrings - Add pyrightconfig.json for static type checking configuration - Create prompt_optimized.py and test_extraction_prompt_ab.py test files - Update ruff.toml and .gitignore for improved linting configuration - Standardize code style across examples, reproduce scripts, and utilities
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,
|
|
azure_openai_complete_if_cache,
|
|
azure_openai_embed,
|
|
)
|
|
|
|
__all__ = [
|
|
'azure_openai_complete',
|
|
'azure_openai_complete_if_cache',
|
|
'azure_openai_embed',
|
|
]
|