Skip to content

Normalize SeedPrompt file extension detection#1501

Open
biefan wants to merge 1 commit intoAzure:mainfrom
biefan:normalize-seedprompt-file-extension-detection
Open

Normalize SeedPrompt file extension detection#1501
biefan wants to merge 1 commit intoAzure:mainfrom
biefan:normalize-seedprompt-file-extension-detection

Conversation

@biefan
Copy link
Contributor

@biefan biefan commented Mar 17, 2026

Summary

  • normalize file extensions before inferring SeedPrompt.data_type from existing files
  • add regression coverage for uppercase image and audio extensions

Problem

SeedPrompt infers file-backed prompt types by reading the file extension, but the comparison is currently case-sensitive.

That makes valid files such as example.PNG or sample.WAV raise ValueError instead of being inferred as image_path or audio_path, even though the extension is otherwise supported.

Testing

  • .venv/bin/pytest tests/unit/models/test_seed.py -q

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