Skip to content

Add native AI Task image and attachment support#2

Merged
itsreverence merged 10 commits into
mainfrom
v0.2-media-ai-task
Jun 4, 2026
Merged

Add native AI Task image and attachment support#2
itsreverence merged 10 commits into
mainfrom
v0.2-media-ai-task

Conversation

@itsreverence

Copy link
Copy Markdown
Owner

Summary

  • Add a native Home Assistant AI Task entity for Codex Assist
  • Support ai_task.generate_data, ai_task.generate_image, and HA-native attachments
  • Add configurable image quality/size defaults
  • Return generated image metadata including width/height
  • Keep normal Assist safety on Home Assistant exposed-entity controls

Real HA smoke test evidence

Tested on Home Assistant 2026.5.4:

  • Normal Assist sanity prompt passed
  • ai_task.generate_data returned expected text
  • ai_task.generate_image produced a PNG image
  • Non-default landscape image size produced an image
  • Attachment understanding worked using a generated image
  • Image generation with attachment worked

Local verification

  • uv run pytest -q → 65 passed
  • uv run ruff check . → clean
  • docker run --rm -v "$PWD:/github/workspace" ghcr.io/home-assistant/hassfest → Invalid integrations: 0

Notes

The Codex/ChatGPT service interface remains unofficial/experimental, but the new surface uses Home Assistant's native AI Task APIs and preserves the existing exposed-entity safety model for normal Assist control.

@itsreverence
itsreverence merged commit 038c65b into main Jun 4, 2026
3 checks passed
@itsreverence
itsreverence deleted the v0.2-media-ai-task branch June 16, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant