Skip to content

Wire TPasClawServer.Model into startup config default model - #39

Merged
FMXExpress merged 1 commit into
mainfrom
codex/wire-model-property-into-server-config
May 28, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
codex/wire-model-property-into-server-config

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the component-level Model property becomes the server-wide default/fallback model so endpoints that report or use the default (for example /v1/models, /v1/chat, and omitted model in /v1/chat/completions) reflect the component override.

Description

  • In TPasClawServer.Start immediately after FConfig := LoadConfig; add if FModel <> '' then FConfig.DefaultModel := FModel; so the TGatewayServer receives the overridden default model while preserving per-request model semantics.

Testing

  • No automated tests were executed for this change.

Codex Task

@FMXExpress
FMXExpress merged commit a52a318 into main May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant