Skip to content

Commit 9bfcdfb

Browse files
committed
review changes
1 parent 775dd47 commit 9bfcdfb

10 files changed

Lines changed: 22 additions & 463 deletions

scripts/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ scripts/
2222
cleanup_recordings.py # Remove orphaned test recordings
2323
diagnose_recordings.py # Debug test recording issues
2424
normalize_recordings.py # Normalize test recordings for consistency
25-
gen_inference_store_disabled_recordings.py # Regenerate recordings for the inference-store-disabled integration test
2625
docker.sh # Docker build helper
2726
install.sh # Installation helper
2827
integration-tests.sh # Run integration test suite
@@ -67,9 +66,6 @@ uv run python scripts/cleanup_recordings.py
6766
uv run python scripts/diagnose_recordings.py
6867
# Normalize recordings
6968
uv run python scripts/normalize_recordings.py
70-
# Regenerate recordings for the inference-store-disabled integration test
71-
# (records against a local mock OpenAI server; isolates the shared recordings dir)
72-
uv run python scripts/gen_inference_store_disabled_recordings.py
7369
```
7470

7571
### Remote test recording (via GitHub Actions)

scripts/gen_inference_store_disabled_recordings.py

Lines changed: 0 additions & 261 deletions
This file was deleted.

src/ogx/core/routers/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ async def get_auto_router_impl(
6060
api_to_dep_impl = {}
6161
# TODO: move pass configs to routers instead
6262
if api == Api.inference:
63-
# An absent inference store reference disables chat completion
64-
# persistence: no store is constructed, no table is created, and no
65-
# background write workers are started. The inference router handles a
66-
# missing store (it guards every write and raises NotImplementedError
67-
# on the history endpoints), mirroring the optional Responses store.
6863
inference_ref = run_config.storage.stores.inference
6964
if inference_ref is not None:
7065
inference_store = InferenceStore(

src/ogx/core/storage/README.md

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,16 @@ Storage is configured in `StackConfig.storage` via `StorageConfig`. The `stores`
5555

5656
See `datatypes.py` for all config types and `StorageBackendType` for the enum of supported backends.
5757

58-
### Optional Stores (null to disable)
59-
60-
Some store references are optional: setting the reference to `null` (not omitting
61-
it) means OGX does not construct the store at all, and the API that depends on
62-
it degrades gracefully. This is an explicit operator choice made in a run config;
63-
the default for every optional reference remains an enabled reference (except
64-
`responses`, which defaults to `None`), so existing deployments are unaffected
65-
unless they opt in.
66-
67-
- **`inference`** -- when `null`, no `InferenceStore` is constructed: no
68-
`inference_store` table is created and no background write workers run. Chat
69-
completions still work (streaming and non-streaming); the chat completion
70-
history endpoints (`list`, `retrieve`, `messages`) report that persistence is
71-
not configured (HTTP 501) rather than returning an empty list or a 404.
72-
- **`responses`** -- the `responses` reference is nullable in the config schema
73-
(`default=None`) and `null` passes validation, but unlike `inference` it is not
74-
a runtime toggle: the built-in responses provider always constructs and
75-
initializes its store from its own `persistence.responses` (a required,
76-
non-nullable reference), and the shared `storage.stores.responses` reference
77-
is only validated, never consumed at startup. Setting it to `null` is accepted
78-
but does not currently disable Responses persistence.
79-
80-
Other stores (`datasets`, `eval`, `files`, `prompts`, `vector_io`) are not
81-
affected by disabling the inference store, so persistence can be turned off for
82-
one API independently of the rest of the storage layer.
58+
### Inference Store (null to disable)
59+
60+
Setting the `inference` store reference to `null` explicitly disables Chat
61+
Completions persistence. Omitting the reference keeps the store enabled for
62+
backward compatibility.
63+
64+
When disabled, no `InferenceStore` is constructed, no `inference_store` table is
65+
created, and no background write workers run. Streaming and non-streaming Chat
66+
Completions continue to work. The history endpoints (`list`, `retrieve`, and
67+
`messages`) report that persistence is not configured (HTTP 501).
68+
69+
Other stores (`responses`, `datasets`, `eval`, `files`, `prompts`, `vector_io`)
70+
are unaffected by disabling the inference store.

src/ogx/distributions/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,5 @@ completions still work for both streaming and non-streaming requests; the
7373
history endpoints report that persistence is not configured (HTTP 501) rather
7474
than returning an empty list or a 404. Other stores (`responses`, `datasets`,
7575
`eval`, `files`, `prompts`, `vector_io`) stay enabled, so disabling inference
76-
persistence is independent of the rest of the storage layer. This follows the
77-
same optional-store pattern the Responses store already uses; see the storage
76+
persistence is independent of the rest of the storage layer. See the storage
7877
module README for details.

0 commit comments

Comments
 (0)