From 9d1cddf1618b5749bcbecc4b9e4b2e19a730ff02 Mon Sep 17 00:00:00 2001 From: Anton Dubovik Date: Thu, 1 Aug 2024 15:43:42 +0100 Subject: [PATCH] chore: removed dead code --- aidial_adapter_dial/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aidial_adapter_dial/app.py b/aidial_adapter_dial/app.py index 1a5fbcb..7c19898 100644 --- a/aidial_adapter_dial/app.py +++ b/aidial_adapter_dial/app.py @@ -6,7 +6,7 @@ from aidial_sdk.telemetry.types import TelemetryConfig from fastapi import FastAPI, Request from fastapi.responses import StreamingResponse -from openai import AsyncAzureOpenAI, AsyncStream, BaseModel, Timeout +from openai import AsyncAzureOpenAI, AsyncStream, BaseModel from openai.types import CreateEmbeddingResponse from openai.types.chat.chat_completion import ChatCompletion from openai.types.chat.chat_completion_chunk import ChatCompletionChunk @@ -42,8 +42,6 @@ LOCAL_DIAL_URL = get_env("DIAL_URL") -DEFAULT_TIMEOUT = Timeout(600, connect=10) - def get_hostname(url: str) -> str: parsed_url = urlparse(url)