Files
shimmy/tests
Michael A. Kuykendall e8bdb2dea2 Fix OpenAI API compatibility for frontend integration (Issue #113)
- Remove extra fields (root, parent, permission) from /v1/models response
- Create separate ListModel struct for models endpoint that matches OpenAI spec exactly
- Update created timestamp to use proper system time instead of 0
- Update all tests to use the new ListModel structure

Root cause: Frontend applications like Open WebUI and AnythingLLM expect strict OpenAI API compliance. The extra fields in shimmy's Model struct were causing them to reject the API as incompatible.

Fix ensures /v1/models returns only: id, object, created, owned_by - matching OpenAI specification exactly.
2025-12-07 17:27:08 -06:00
..