Address PR review feedback
- Remove flawed validation check in azure_openai_neo4j.py - Remove unused azure-identity dependency - Update docstrings to reflect dual client support (AsyncAzureOpenAI and AsyncOpenAI) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ea01cd7331
commit
a3a4d70a16
4 changed files with 8 additions and 7 deletions
|
|
@ -53,9 +53,6 @@ neo4j_uri = os.environ.get("NEO4J_URI", "bolt://localhost:7687")
|
|||
neo4j_user = os.environ.get("NEO4J_USER", "neo4j")
|
||||
neo4j_password = os.environ.get("NEO4J_PASSWORD", "password")
|
||||
|
||||
if not neo4j_uri or not neo4j_user or not neo4j_password:
|
||||
raise ValueError("NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD must be set")
|
||||
|
||||
# Azure OpenAI connection parameters
|
||||
azure_endpoint = os.environ.get("AZURE_OPENAI_ENDPOINT")
|
||||
azure_api_key = os.environ.get("AZURE_OPENAI_API_KEY")
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class AzureOpenAIEmbedderClient(EmbedderClient):
|
||||
"""Wrapper class for AsyncAzureOpenAI that implements the EmbedderClient interface."""
|
||||
"""Wrapper class for Azure OpenAI that implements the EmbedderClient interface.
|
||||
|
||||
Supports both AsyncAzureOpenAI and AsyncOpenAI (with Azure v1 API endpoint).
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,10 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class AzureOpenAILLMClient(BaseOpenAIClient):
|
||||
"""Wrapper class for AsyncAzureOpenAI that implements the LLMClient interface."""
|
||||
"""Wrapper class for Azure OpenAI that implements the LLMClient interface.
|
||||
|
||||
Supports both AsyncAzureOpenAI and AsyncOpenAI (with Azure v1 API endpoint).
|
||||
"""
|
||||
|
||||
# Class-level constants
|
||||
MAX_RETRIES: ClassVar[int] = 2
|
||||
|
|
|
|||
|
|
@ -36,9 +36,7 @@ neo4j-opensearch = ["boto3>=1.39.16", "opensearch-py>=3.0.0"]
|
|||
sentence-transformers = ["sentence-transformers>=3.2.1"]
|
||||
neptune = ["langchain-aws>=0.2.29", "opensearch-py>=3.0.0", "boto3>=1.39.16"]
|
||||
tracing = ["opentelemetry-api>=1.20.0", "opentelemetry-sdk>=1.20.0"]
|
||||
azure = ["azure-identity>=1.25.1"]
|
||||
dev = [
|
||||
"azure-identity>=1.25.1",
|
||||
"pyright>=1.1.404",
|
||||
"groq>=0.2.0",
|
||||
"anthropic>=0.49.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue