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

Function api_call

codes/2_analyzing.py:138–150  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

136
137
138def api_call(msg):
139 if "o3-mini" in gpt_version:
140 completion = client.chat.completions.create(
141 model=gpt_version,
142 reasoning_effort="high",
143 messages=msg
144 )
145 else:
146 completion = client.chat.completions.create(
147 model=gpt_version,
148 messages=msg
149 )
150 return completion
151
152
153artifact_output_dir=f'{output_dir}/analyzing_artifacts'

Callers 1

2_analyzing.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected