「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
構成関係の話
langflow [OPTIONS] # or python -m langflow [OPTIONS]
langflow xxxx [OPTIONS] # or python -m langflow xxxx [OPTIONS]
--option 'Value with Spaces'
--option='Value with Spaces'
run langflow run --env-file .env
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=false/true
以下のように設定する。
LANGFLOW_AUTO_LOGIN=True
LANGFLOW_SUPERUSER=administrator LANGFLOW_SUPERUSER_PASSWORD=securepassword
LANGFLOW_SECRET_KEY
# Copy to clipboard python3 -c "from secrets import token_urlsafe; print(f'LANGFLOW_SECRET_KEY={token_urlsafe(32)}')" | xclip -selection clipboard
# Copy to clipboard python -c "from secrets import token_urlsafe; print(f'LANGFLOW_SECRET_KEY={token_urlsafe(32)}')" | clip
LANGFLOW_SECRET_KEY=dBuuuB_FHLvU8T9eUNlxQF9ppqRxwWpXXQ42kM2_fb
APIキーの取得は認可に該当
langflow api-key # or python -m langflow api-key ╭───────────────────────────────────╮ │ API Key Created Successfully: │ │ │ │ sk-O0elzoWID1izAH8RUKrnnvyyMwIzHi2Wk-uXWoNJ2Ro │ │ │ │ This is the only time the API key will be displayed. │ │ Make sure to store it in a secure location. │ │ │ │ The API key has been copied to your clipboard. Cmd + V to paste it. │ ╰──────────────────────────────
curl -X POST \ "http://localhost:7860/api/v1/run/FLOW_ID?stream=false" \ -H 'Content-Type: application/json' \ -H 'x-api-key: API_KEY' \ -d '{"inputs": {"text":""}, "tweaks": {}}'
curl -X POST \ "http://localhost:7860/api/v1/run/FLOW_ID?x-api-key=API_KEY?stream=false" \ -H 'Content-Type: application/json' \ -d '{"inputs": {"text":""}, "tweaks": {}}'
OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-... GOOGLE_API_KEY=...
SQLiteをPostgreSQLに切り替えることが出来る。
https://docs.langflow.org/configuration-custom-database