MCPcopy Create free account
hub / github.com/Emmimal/control-layer / make_deterministic_llm

Function make_deterministic_llm

demo.py:118–125  ·  view source on GitHub ↗
(responses: list)

Source from the content-addressed store, hash-verified

116
117
118def make_deterministic_llm(responses: list):
119 idx = [0]
120 def call(prompt: str) -> str:
121 time.sleep(0.03)
122 r = responses[idx[0] % len(responses)]
123 idx[0] += 1
124 return r
125 return call
126
127
128# =============================================================================

Callers 2

demo_4_fallback_routerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected