Altium-archimajor-3d-printe.../.allspice/workflows/05-ask-ai.yml
Workflow config file is invalid. Please check your config file: EOF

30 lines
1006 B
YAML

# # Workflow to ask AI questions
# name: Ask AI Questions
# on:
# push:
# issues:
# types: [opened, closed, reopened]
# jobs:
# run-ai-example:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'
# - name: Install dependencies
# run: |
# pip install -r assistant/requirements.txt
# # Run an example query against the generated Digikey BOM report
# # Note: We're using canned data from `.allspice/workflows/04-digikey-report.yml.disabled` to speed up the workflow and prevent API rate limits
# - name: Run AI Example - Query 1
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# run: python assistant/OpenAIChatStreamer.py --model "gpt-4o" --prompt "Summarize any anomalies or findings from this BOM lookup file." --included-files digikey_data_from_bom.json --no-streaming