Commit daa5d7b
fix(openai): remove _to_openai_name and pass configured model to Agent
_to_openai_name converted hyphens to underscores based on an assumed
restriction that doesn't exist — the OpenAI API allows hyphens in tool
and function names (^[a-zA-Z0-9_-]{1,64}$). Removing it simplifies the
tool name lookup and agent naming.
Also adds model=model.name to the Agent constructor so each node runs
with its configured model rather than the SDK default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 96847b9 commit daa5d7b
1 file changed
Lines changed: 5 additions & 12 deletions
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
| |||
281 | 276 | | |
282 | 277 | | |
283 | 278 | | |
284 | | - | |
285 | | - | |
| 279 | + | |
286 | 280 | | |
287 | 281 | | |
288 | 282 | | |
289 | 283 | | |
290 | 284 | | |
291 | 285 | | |
292 | | - | |
| 286 | + | |
293 | 287 | | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
297 | 291 | | |
298 | | - | |
299 | 292 | | |
300 | 293 | | |
301 | 294 | | |
| |||
306 | 299 | | |
307 | 300 | | |
308 | 301 | | |
309 | | - | |
| 302 | + | |
310 | 303 | | |
311 | 304 | | |
312 | 305 | | |
| |||
324 | 317 | | |
325 | 318 | | |
326 | 319 | | |
327 | | - | |
328 | 320 | | |
329 | 321 | | |
330 | 322 | | |
331 | 323 | | |
332 | 324 | | |
333 | 325 | | |
334 | 326 | | |
335 | | - | |
| 327 | + | |
| 328 | + | |
336 | 329 | | |
337 | 330 | | |
338 | 331 | | |
| |||
0 commit comments