Skip to content

Commit

Permalink
Merge pull request #6 from pamelafox/testeval
Browse files Browse the repository at this point in the history
Use westus endpoint for chat completions
  • Loading branch information
pamelafox authored Oct 28, 2024
2 parents 7515b36 + 694e983 commit 6b363a6
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 144 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/azure-dev.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/bicep-security-scan.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/python-code-quality.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion src/backend/fastapi_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_app(testing: bool = False):
else:
if not testing:
load_dotenv(override=True)
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)
# Turn off particularly noisy INFO level logs from Azure Core SDK:
logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(logging.WARNING)
logging.getLogger("azure.identity").setLevel(logging.WARNING)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/fastapi_app/openai_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def create_openai_chat_client(
OPENAI_CHAT_HOST = os.getenv("OPENAI_CHAT_HOST")
if OPENAI_CHAT_HOST == "azure":
api_version = os.environ["AZURE_OPENAI_VERSION"] or "2024-03-01-preview"
azure_endpoint = os.environ["AZURE_OPENAI_ENDPOINT"]
azure_endpoint = "https://pf-openai-keylesslf653mu3fc22i-openai.openai.azure.com/"
azure_deployment = os.environ["AZURE_OPENAI_CHAT_DEPLOYMENT"]
if api_key := os.getenv("AZURE_OPENAI_KEY"):
logger.info(
Expand Down

0 comments on commit 6b363a6

Please sign in to comment.