Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
9
client = OpenAI(api_key = os.environ[
"OPENAI_API_KEY"
])
10
11
def
api_call(request_json):
12
completion = client.chat.completions.create(**request_json)
13
return
completion
14
15
def
main(args):
16
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected