diff --git a/src/translator.py b/src/translator.py index 2b73013..d979901 100644 --- a/src/translator.py +++ b/src/translator.py @@ -6,7 +6,7 @@ # load_dotenv() client = AzureOpenAI( - api_key="", # Replace with your Azure API key + api_key=os.getenv("API_KEY"), # Replace with your Azure API key api_version="2024-02-15-preview", azure_endpoint="https://p4-tinv1.openai.azure.com/" # Replace with your Azure endpoint ) @@ -86,4 +86,4 @@ def query_llm_robust(post: str) -> tuple[bool, str]: # elif translation_language is not None and translation_language != "English": # return (False, "Sorry, we are unable to provide an English Translation.") # else: -# return (is_english, translation) \ No newline at end of file +# return (is_english, translation)