runtime error
Exit code: 1. Reason: Traceback (most recent call last): File "/home/user/app/app/qa_bot.py", line 36, in __init__ self.model = AzureChatOpenAI( File "/usr/local/lib/python3.10/site-packages/langchain_core/load/serializable.py", line 130, in __init__ super().__init__(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 253, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) File "/usr/local/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py", line 650, in validate_environment self.root_client = openai.AzureOpenAI(**client_params, **sync_specific) # type: ignore[arg-type] File "/usr/local/lib/python3.10/site-packages/openai/lib/azure.py", line 194, in __init__ raise OpenAIError( openai.OpenAIError: Missing credentials. Please pass one of `api_key`, `azure_ad_token`, `azure_ad_token_provider`, or the `AZURE_OPENAI_API_KEY` or `AZURE_OPENAI_AD_TOKEN` environment variables. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/main.py", line 4, in <module> from app.qa_bot import QA_Bot File "/home/user/app/app/qa_bot.py", line 71, in <module> class QA_Bot: File "/home/user/app/app/qa_bot.py", line 72, in QA_Bot def __init__(self, llm_service=LLMService('AzureOpenAI', 'gpt-35-turbo'), embedding_service=EmbeddingService()): File "/home/user/app/app/qa_bot.py", line 54, in __init__ raise HTTPException(status_code=500, detail=str(e)) fastapi.exceptions.HTTPException: 500: Missing credentials. Please pass one of `api_key`, `azure_ad_token`, `azure_ad_token_provider`, or the `AZURE_OPENAI_API_KEY` or `AZURE_OPENAI_AD_TOKEN` environment variables.
Container logs:
Fetching error logs...