MCPcopy
hub / github.com/coder/mux / normalizeGatewaySendOptions

Method normalizeGatewaySendOptions

src/node/services/agentSession.ts:3413–3426  ·  view source on GitHub ↗
(options: SendMessageOptions)

Source from the content-addressed store, hash-verified

3411 }
3412
3413 private normalizeGatewaySendOptions(options: SendMessageOptions): SendMessageOptions {
3414 const normalizeModelSelection = (modelString: string): string => {
3415 const trimmedModelString = modelString.trim();
3416 // Preserve explicit gateway prefixes as user intent; otherwise keep persisted IDs canonical.
3417 return getExplicitGatewayPrefix(trimmedModelString)
3418 ? trimmedModelString
3419 : normalizeToCanonical(trimmedModelString);
3420 };
3421
3422 return {
3423 ...options,
3424 model: normalizeModelSelection(options.model),
3425 };
3426 }
3427
3428 async interruptStream(options?: {
3429 soft?: boolean;

Callers 2

sendMessageMethod · 0.95
resumeStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected