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

Function api_call

codes/3_coding.py:136–148  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

134
135
136def api_call(msg):
137 if "o3-mini" in gpt_version:
138 completion = client.chat.completions.create(
139 model=gpt_version,
140 reasoning_effort="high",
141 messages=msg
142 )
143 else:
144 completion = client.chat.completions.create(
145 model=gpt_version,
146 messages=msg
147 )
148 return completion
149
150
151# testing for checking

Callers 1

3_coding.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected