Skip to content

Commit

Permalink
fic formatting and import order for app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 3, 2024
1 parent a1f8898 commit 4d22598
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
import copy
import json
import os
import logging
import os
import uuid
import httpx
from quart import (
Blueprint,
Quart,
jsonify,
make_response,
request,
send_from_directory,
render_template,
)

from openai import AsyncAzureOpenAI
from azure.search.documents import SearchClient
import httpx
from azure.core.credentials import AzureKeyCredential
from azure.identity.aio import DefaultAzureCredential, get_bearer_token_provider
from azure.identity.aio import (DefaultAzureCredential,
get_bearer_token_provider)
from azure.search.documents import SearchClient
from openai import AsyncAzureOpenAI
from quart import (Blueprint, Quart, jsonify, make_response, render_template,
request, send_from_directory)

from backend.auth.auth_utils import get_authenticated_user_details
from backend.security.ms_defender_utils import get_msdefender_user_json
from backend.history.cosmosdbservice import CosmosConversationClient
from backend.security.ms_defender_utils import get_msdefender_user_json
from backend.settings import (
app_settings,
MINIMUM_SUPPORTED_AZURE_OPENAI_PREVIEW_API_VERSION,
)
from backend.utils import (
format_as_ndjson,
format_stream_response,
format_non_streaming_response,
ChatType,
)
MINIMUM_SUPPORTED_AZURE_OPENAI_PREVIEW_API_VERSION, app_settings)
from backend.utils import (ChatType, format_as_ndjson,
format_non_streaming_response,
format_stream_response)

bp = Blueprint("routes", __name__, static_folder="static", template_folder="static")

Expand Down

0 comments on commit 4d22598

Please sign in to comment.