Pydantic validation error azure api connection

pydantic_core._pydantic_core.ValidationError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module.dict)
File "/mount/src/edtitor1/app.py", line 365, in <module>
    main()
File "/mount/src/edtitor1/app.py", line 247, in main
    summary_service = AzureChatCompletion(deployment, endpoint, api_key)
File "/home/adminuser/venv/lib/python3.9/site-packages/semantic_kernel/connectors/ai/open_ai/services/azure_chat_completion.py", line 177, in init
    base_url = HttpsUrl(base_url)
File "/usr/local/lib/python3.9/typing.py", line 687, in call
    result = self.origin(*args, **kwargs)

Hi @ceybe,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.