azure-search-openai-demo
azure-search-openai-demo copied to clipboard
TypeError: "type" object is not subscriptable
Hey, I was trying to run this code locally. Using the the "./start.sh" script. It fails in deploying the backend script. I tried different versions of python, but I am facing the same issue.
Starting backend
Traceback (most recent call last):
File "./app.py", line 12, in
My python version is 3.8.8
I need to import " from typing import List,Dict,Any"
and rewrite "def run(self, history: List[Dict], overrides: Dict) -> Any:"
then It is work
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.
We've decided to only support 3.9+, closing.