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

Function _write_server_config

tests/test_run_baseline_script.py:209–234  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

207
208
209def _write_server_config(path: Path) -> Path:
210 path.write_text(
211 """
212schema_version = 1
213
214[llm_clients.test]
215format = "openai_chat"
216base_url = "https://example.test/v1"
217
218[targets.strong]
219id = "strong-model"
220llm_client = "test"
221
222[targets.weak]
223id = "weak-model"
224llm_client = "test"
225
226[routes.random]
227id = "tb-lite-random-routing"
228type = "random"
229targets = ["strong", "weak"]
230weights = [1, 1]
231seed = 444
232""".lstrip()
233 )
234 return path
235
236
237def _write_closed_book_dataset(path: Path) -> Path:

Calls

no outgoing calls

Tested by

no test coverage detected