Azure OpenAI integration with db
1.0.0
歡迎來到與DB的Azure-Openai-Integration!該項目利用燒瓶和Azure OpenAI提供交互式查詢系統。
這些說明將指導您在本地設置並運行該項目。
git clone https://github.com/SP4RKiOP/Azure-OpenAI-integration-with-db.git
cd your-project
在utils.py中設置Azure OpenAI API密鑰,base_url和您的部署名稱:
os . environ [ "OPENAI_API_KEY" ] = "change with your key"
os . environ [ "OPENAI_API_BASE" ] = "change with your base url"
os . environ [ "OPENAI_API_VERSION" ] = "change with your version"
deployment_name = "change with your model name" # (in llm connection string)設置您的數據庫連接字符串:
db = SQLDatabase . from_uri ( "mssql+pymssql://dbServerName:[email protected]:1433/dbName" )使用女服務員啟動服務器:
waitress-serve --call wsgi:create_app
該應用程序將在http:// localhost:8080中訪問。
如果您想為這個項目做出貢獻,請隨時做。
該項目已根據MIT許可獲得許可。