Compare commits
2
Commits
6df8824561
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ab7721b6b
|
||
|
|
d6ce6b5bda
|
@@ -10,44 +10,8 @@ on:
|
|||||||
- published
|
- published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.13"
|
|
||||||
|
|
||||||
- name: Setup uv
|
|
||||||
uses: astral-sh/setup-uv@v5
|
|
||||||
|
|
||||||
- name: Install PortAudio
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends portaudio19-dev
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: uv sync
|
|
||||||
|
|
||||||
- name: Ruff
|
|
||||||
run: uv run ruff check vibe_bot/
|
|
||||||
|
|
||||||
- name: Mypy
|
|
||||||
run: uv run mypy vibe_bot/
|
|
||||||
|
|
||||||
- name: Pyright
|
|
||||||
run: uv run pyright vibe_bot/
|
|
||||||
|
|
||||||
- name: Black
|
|
||||||
run: uv run black --check vibe_bot/
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: uv run pytest vibe_bot/tests/ -m "not live" -v
|
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test]
|
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
+2
-2
@@ -116,8 +116,8 @@ IMAGE_PROMPT_SYSTEM_PROMPT_TEMPLATE = (
|
|||||||
"four legs extending from the human's waist - one fused body, not a "
|
"four legs extending from the human's waist - one fused body, not a "
|
||||||
"person riding a horse.\n"
|
"person riding a horse.\n"
|
||||||
"- If told to generate an image of yourself, generate a picture of a "
|
"- If told to generate an image of yourself, generate a picture of a "
|
||||||
"canada goose. If told to generate a picture of 'me', 'myself', or some "
|
"a horrifying creature. If told to generate a picture of 'me', 'myself', or some "
|
||||||
"other self reference, generate a picture of a canada goose.\n"
|
"other self reference, generate a picture of a horrifying creature.\n"
|
||||||
"- Respond with ONLY the image generation prompt itself. Do not affirm "
|
"- Respond with ONLY the image generation prompt itself. Do not affirm "
|
||||||
"the user, do not answer the user's questions, and do not add headings, "
|
"the user, do not answer the user's questions, and do not add headings, "
|
||||||
"labels, numbered lists, or any other text."
|
"labels, numbered lists, or any other text."
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ def test_image_prompt_system_prompt_covers_key_details() -> None:
|
|||||||
assert "exact text" in lowered
|
assert "exact text" in lowered
|
||||||
assert "composition" in lowered
|
assert "composition" in lowered
|
||||||
assert "style" in lowered
|
assert "style" in lowered
|
||||||
assert "canada goose" in lowered
|
assert "horrifying creature" in lowered
|
||||||
assert "only the image generation prompt" in lowered
|
assert "only the image generation prompt" in lowered
|
||||||
assert "exactly as written" in lowered
|
assert "exactly as written" in lowered
|
||||||
assert "fountain pen wearing pants" in lowered
|
assert "fountain pen wearing pants" in lowered
|
||||||
|
|||||||
Reference in New Issue
Block a user