MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / ModelOverrideProcessor

Class ModelOverrideProcessor

tests/test_switchyard.py:64–72  ·  view source on GitHub ↗

Mutates the model field on the request body.

Source from the content-addressed store, hash-verified

62
63
64class ModelOverrideProcessor:
65 """Mutates the model field on the request body."""
66
67 def __init__(self, new_model: str) -> None:
68 self._new_model = new_model
69
70 async def process(self, ctx, request):
71 request.set_model(self._new_model)
72 return request
73
74
75class MetadataTagProcessor:

Calls

no outgoing calls