This repository was archived by the owner on Sep 18, 2025. It is now read-only.
Commit ff4552a
committed
[feature/openrouter-provider] Refactor finish reason handling and tool call logic in agent and OpenAI provider
- Simplified finish reason check in `agent.go` by removing redundant variable assignment.
- Updated `openai.go` to override the finish reason to `FinishReasonToolUse` when tool calls are present.
- Ensured consistent finish reason handling in both `send` and `stream` methods of the OpenAI provider.1 parent c3568d6 commit ff4552a
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
| |||
0 commit comments