""" Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT…
- User
""" Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. """
from dotenv import load_dotenv import os
Load .env from the root directory
load_dotenv(dotenv_path=os.path.join(os.path.dirname(file), '..', '.env'))
DEBUG: check if values loaded
print("Loaded name:", os.getenv("AZURE_STORAGE_ACCOUNT_NAME")) print("Loaded key:", os.getenv("AZURE_STORAGE_ACCOUNT_KEY")[:5], "...")
class Config: """Bot Configuration"""
PORT = 3978 APP_ID = os.environ.get("BOT_ID", "") APP_PASSWORD = os.environ.get("BOT_PASSWORD", "") APP_TYPE = os.environ.get("BOT_TYPE", "") APP_TENANTID = os.environ.get("BOT_TENANT_ID", "") AZURE_OPENAI_API_KEY = os.environ.get("AZURE_OPENAI_API_KEY") AZURE_OPENAI_MODEL_DEPLOYMENT_NAME = os.environ.get("AZURE_OPENAI_MODEL_DEPLOYMENT_NAME") AZURE_OPENAI_ENDPOINT = os.environ.get("AZURE_OPENAI_ENDPOINT")if not AZURE_OPENAI_API_KEY or not AZURE_OPENAI_MODEL_DEPLOYMENT_NAME or not AZURE_OPENAI_ENDPOINT: raise EnvironmentError("One or more required Azure OpenAI environment variables are missing.")
does that code look legit?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.