(msg)
| 136 | |
| 137 | |
| 138 | def 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 | |
| 153 | artifact_output_dir=f'{output_dir}/analyzing_artifacts' |