[Frontend] Expose /v1/systemone without an opt-in flag (#60677)

Signed-off-by: Francisco Javier Arceo <4163062+franciscojavierarceo@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Francisco Javier Arceo
2026-10-08 20:21:05 +00:00
committed by GitHub
co-authored by Codex Cyrus Leung
parent 72d59adc2c
commit ae9adec905
8 changed files with 56 additions and 33 deletions
+13 -12
View File
@@ -230,16 +230,11 @@ async def init_generate_state(
from .structured_decisions.serving import ServingStructuredDecisions
from .structured_decisions.strategies import ReadContext, select_read_strategy
strategy_cls = (
select_read_strategy(engine_client.model_config)
if "generate" in supported_tasks
and getattr(args, "enable_structured_decisions", False)
else None
)
state.serving_structured_decisions = (
ServingStructuredDecisions(
state.openai_serving_models,
strategy_cls(
strategy = None
if "generate" in supported_tasks:
try:
strategy_cls = select_read_strategy(engine_client.model_config)
strategy = strategy_cls(
ReadContext(
engine_client=engine_client,
online_renderer=state.online_renderer,
@@ -247,9 +242,15 @@ async def init_generate_state(
chat_template_content_format=args.chat_template_content_format,
default_chat_template_kwargs=default_chat_template_kwargs,
)
),
)
except ValueError:
strategy = None
state.serving_structured_decisions = (
ServingStructuredDecisions(
state.openai_serving_models,
strategy,
request_logger=request_logger,
)
if strategy_cls is not None
if strategy is not None
else None
)