llama-stack-mirror/tests/unit/utils
Sébastien Han 470fe55e87
fix(inference): respect table_name config in InferenceStore (#4371)
# What does this PR do?

The InferenceStore class was ignoring the table_name field from
InferenceStoreReference and always using the hardcoded value
"chat_completions". This meant that any custom table_name configured in
the run config (e.g., "inference_store" in run-with-postgres-store.yaml)
was silently ignored.

This change updates all SQL operations in InferenceStore to use
self.reference.table_name instead of the hardcoded string, ensuring the
configured table name is properly respected.

A new test has been added to verify that custom table names work
correctly for storing, retrieving, and listing chat completions.

<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->

## Test Plan

CI

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-12-11 14:50:23 +01:00
..
inference fix(inference): respect table_name config in InferenceStore (#4371) 2025-12-11 14:50:23 +01:00
kvstore refactor(storage): make { kvstore, sqlstore } as llama stack "internal" APIs (#4181) 2025-11-18 13:15:16 -08:00
responses refactor(storage): make { kvstore, sqlstore } as llama stack "internal" APIs (#4181) 2025-11-18 13:15:16 -08:00
sqlstore refactor(storage): make { kvstore, sqlstore } as llama stack "internal" APIs (#4181) 2025-11-18 13:15:16 -08:00
test_authorized_sqlstore.py fix: set SqlRecord owner to None when owner_principal is empty (#4284) 2025-12-03 10:28:33 -08:00