#6558·ogx

`apis:` 不能禁用 `conversations`, 而省略的路由会返回非 OpenAI 格式的 404 错误。

作者: nathan-weinberg创建于 2026年9月15日更新于 2026年9月15日

src/ogx/core/server/server.py#L166-L181:

python
if app.stack.run_config.apis:
    apis_to_serve = set(app.stack.run_config.apis)
else:
    apis_to_serve = set(impls.keys())

for inf in builtin_automatically_routed_apis():
    if inf.router_api.value not in apis_to_serve:
        continue
    apis_to_serve.add(inf.routing_table_api.value)

apis_to_serve.add("admin")
apis_to_serve.add("inspect")
apis_to_serve.add("providers")
apis_to_serve.add("prompts")
apis_to_serve.add("conversations")  # <-- unconditional

The config-derived set is built and then conversations is added back unconditionally, so the router is registered at L183-L189 no matter what.