llama-stack-mirror/llama_stack/providers
mergify[bot] a6a600f845
fix(inference): respect table_name config in InferenceStore (backport #4371) (#4372)
# 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.




## Test Plan

CI

<hr>This is an automatic backport of pull request #4371 done by
[Mergify](https://mergify.com).

Signed-off-by: Sébastien Han <seb@redhat.com>
Co-authored-by: Sébastien Han <seb@redhat.com>
2025-12-11 15:07:35 +01:00
..
inline fix: Vector store persistence across server restarts (backport #3977) (#4225) 2025-11-24 11:30:21 -08:00
registry chore: bump mcp package version (backport #4287) (#4288) 2025-12-03 17:48:59 +01:00
remote fix: Avoid model_limits KeyError (backport #4060) (#4283) 2025-12-03 10:56:24 +01:00
utils fix(inference): respect table_name config in InferenceStore (backport #4371) (#4372) 2025-12-11 15:07:35 +01:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py chore(cleanup)!: kill vector_db references as far as possible (#3864) 2025-10-20 20:06:16 -07:00