Compare commits

..
1 Commits
Author SHA1 Message Date
ducoterra 40504a679d add back message before doodlebob prompt rewrite
Build and Push Container / test (push) Failing after 45s
Build and Push Container / build-and-push (push) Skipped
2026-08-19 13:18:25 -04:00
4 changed files with 40 additions and 4 deletions
+36
View File
@@ -10,8 +10,44 @@ 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
View File
@@ -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 "
"a horrifying creature. If told to generate a picture of 'me', 'myself', or some " "canada goose. If told to generate a picture of 'me', 'myself', or some "
"other self reference, generate a picture of a horrifying creature.\n" "other self reference, generate a picture of a canada goose.\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."
+1 -1
View File
@@ -182,7 +182,7 @@ class ImageService:
system_prompt = IMAGE_PROMPT_SYSTEM_PROMPT_TEMPLATE.format(layout=layout) system_prompt = IMAGE_PROMPT_SYSTEM_PROMPT_TEMPLATE.format(layout=layout)
# Wait for the generated image prompt. # Wait for the generated image prompt.
await ctx.send("**Doodlebob is writing a better prompt...**") await ctx.send(f"**Doodlebob is writing a better prompt...**")
image_prompt = await llm_client.chat_completion_instruct( image_prompt = await llm_client.chat_completion_instruct(
system_prompt=system_prompt, system_prompt=system_prompt,
user_prompt=message, user_prompt=message,
+1 -1
View File
@@ -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 "horrifying creature" in lowered assert "canada goose" 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