Skip to content

Commit 5892cb7

Browse files
committed
Use westus endpoint for chat completions
1 parent f0a2711 commit 5892cb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/fastapi_app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def create_app(testing: bool = False):
5252
else:
5353
if not testing:
5454
load_dotenv(override=True)
55-
logging.basicConfig(level=logging.INFO)
55+
logging.basicConfig(level=logging.DEBUG)
5656
# Turn off particularly noisy INFO level logs from Azure Core SDK:
5757
logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(logging.WARNING)
5858
logging.getLogger("azure.identity").setLevel(logging.WARNING)

src/backend/fastapi_app/openai_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def create_openai_chat_client(
1414
OPENAI_CHAT_HOST = os.getenv("OPENAI_CHAT_HOST")
1515
if OPENAI_CHAT_HOST == "azure":
1616
api_version = os.environ["AZURE_OPENAI_VERSION"] or "2024-03-01-preview"
17-
azure_endpoint = os.environ["AZURE_OPENAI_ENDPOINT"]
17+
azure_endpoint = "https://pf-openai-keylesslf653mu3fc22i-openai.openai.azure.com/"
1818
azure_deployment = os.environ["AZURE_OPENAI_CHAT_DEPLOYMENT"]
1919
if api_key := os.getenv("AZURE_OPENAI_KEY"):
2020
logger.info(

0 commit comments

Comments
 (0)