MCPcopy Index your code
hub / github.com/going-doer/Paper2Code / api_call

Function api_call

codes/eval.py:11–13  ·  view source on GitHub ↗
(request_json)

Source from the content-addressed store, hash-verified

9client = OpenAI(api_key = os.environ["OPENAI_API_KEY"])
10
11def api_call(request_json):
12 completion = client.chat.completions.create(**request_json)
13 return completion
14
15def main(args):
16

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected