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

Function make_request

tests/test_switchyard.py:52–56  ·  view source on GitHub ↗
(*, model: str = "gpt-4o")

Source from the content-addressed store, hash-verified

50
51
52def make_request(*, model: str = "gpt-4o") -> ChatRequest:
53 return ChatRequest.openai_chat({
54 "model": model,
55 "messages": [{"role": "user", "content": "hi"}],
56 })
57
58
59# ---------------------------------------------------------------------------

Calls 1

openai_chatMethod · 0.45

Tested by

no test coverage detected