From 284950f4cd8932b70390301bf9fa4bef298546f5 Mon Sep 17 00:00:00 2001
From: szelesaron <szelesaron39@gmail.com>
Date: Wed, 6 Mar 2024 15:31:29 +0100
Subject: [PATCH] fixed #188

---
 semantic_router/encoders/zure.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/semantic_router/encoders/zure.py b/semantic_router/encoders/zure.py
index 8a43e361..8fe2cd49 100644
--- a/semantic_router/encoders/zure.py
+++ b/semantic_router/encoders/zure.py
@@ -66,10 +66,10 @@ class AzureOpenAIEncoder(BaseEncoder):
 
         try:
             self.client = openai.AzureOpenAI(
-                azure_deployment=str(deployment_name) if deployment_name else None,
-                api_key=str(api_key),
-                azure_endpoint=str(azure_endpoint),
-                api_version=str(api_version),
+                azure_deployment=str(self.deployment_name) if self.deployment_name else None,
+                api_key=str(self.api_key),
+                azure_endpoint=str(self.azure_endpoint),
+                api_version=str(self.api_version),
                 # _strict_response_validation=True,
             )
         except Exception as e:
-- 
GitLab