MCPcopy Create free account
hub / github.com/ScalingIntelligence/tokasaurus / test_basic

Function test_basic

tests/test_basic.py:99–109  ·  view source on GitHub ↗
(client: OpenAI)

Source from the content-addressed store, hash-verified

97
98
99def test_basic(client: OpenAI):
100 # trying twice to test prompt caching
101 for rep in range(2):
102 response = client.completions.create(
103 model="",
104 prompt=abc_prompt,
105 max_tokens=20,
106 temperature=0.0,
107 )
108
109 assert response.choices[0].text == twenty_token_response
110
111
112def test_decode_one_token(client: OpenAI):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected