(data)
| 153 | MAX_WORKERS = 10 |
| 154 | |
| 155 | def call(data): |
| 156 | try: |
| 157 | completion = client.bot_chat.completions.create( |
| 158 | model=ARK_MODEL, |
| 159 | messages=[ |
| 160 | {"role": "system", "content": "你是豆包,是由字节跳动开发的 AI 人工智能助手"}, |
| 161 | {"role": "user", "content": data["question"]} |
| 162 | ] |
| 163 | ) |
| 164 | return completion.choices[0].message.content |
| 165 | except Exception as e: |
| 166 | print(f"Error: {e}") |
| 167 | return |
| 168 | |
| 169 | if not os.path.exists(output_path): |
| 170 | open(output_path, "w").close() |
nothing calls this directly
no outgoing calls
no test coverage detected