Skip to content

Add a model_version field to all AI responses #272

Description

@kilodesodiq-arch

Problem Statement. Output schema (schemas/humanitarian.py, schemas/anonymization.py,
schemas/ocr.py) doesn't return the model version. A consumer can't tell if they got the
old gpt-4o-mini or a future gpt-5o.

Technical Context.
app/ai-service/schemas/*.

Expected Outcome. Every response includes model_version, sourced from
settings.openai_model or settings.groq_model. The provider name is already emitted;
this normalises the model disclosure.

Acceptance Criteria.

  • A snapshot test pins model_version in expected output.

Files or modules likely to be affected.
app/ai-service/schemas/*.

Difficulty. Easy
Estimated effort. S



Backlog item #64 from `docs/maintainer-issue-backlog.md.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions