- Azure OpenAIのAPIを利用して、画像添付できるChatUIをローカルで動かすための手順メモ

git clone git@github.com:bishopfunc/chatui.git
- 事前準備: Azure OpenAIのAPIキーを取得しておくこと
cd chatui
mkdir .streamlit
touch .streamlit/secrets.toml
AZURE_OPENAI_API_KEY = ""
AZURE_OPENAI_ENDPOINT = "" # 例: "https://your-resource-name.openai.azure.com/"
AZURE_OPENAI_DEPLOYMENT_NAME = "" # 例: "gpt-4o"
AZURE_OPENAI_API_VERSION = "" # 例: "2025-01-01-preview"
- これを設定しておくとコマンド一発でアプリのディレクトリに移動して起動できるようになる
/Users/bishop/chatuiの部分は自分の環境に合わせて変更する
echo 'alias chatui="cd /Users/bishop/chatui && uv run streamlit run app.py"' >> ~/.bash_profile
source ~/.bash_profile
uv run streamlit run app.py
# chatui