Files
openai-api-rs/examples
Morgan Ewing d7e81af88a feat: add reasoning parameter support for OpenRouter API
Add support for OpenRouter's reasoning tokens feature to ChatCompletionRequest.
This allows models like Grok and Claude to use reasoning/thinking tokens for
improved decision making.

- Add ReasoningEffort enum (low/medium/high)
- Add ReasoningMode enum for mutual exclusivity between effort and max_tokens
- Add Reasoning struct with optional mode, exclude, and enabled fields
- Update ChatCompletionRequest with optional reasoning field
- Add builder method support for reasoning parameter
- Include comprehensive unit tests for serialization/deserialization
- Add example demonstrating usage with OpenRouter
2025-07-22 14:50:15 +10:00
..
2024-11-10 15:03:34 +09:00
2024-10-09 07:36:44 +09:00
2025-03-05 07:26:04 +09:00
2025-03-05 07:26:04 +09:00
2025-03-05 07:26:04 +09:00
2025-03-05 07:26:04 +09:00
2025-07-10 16:10:45 +09:00
2025-05-17 09:53:33 +09:00
2025-03-05 07:26:04 +09:00
2025-03-05 07:26:04 +09:00
2025-07-10 16:10:45 +09:00
2025-07-10 16:10:45 +09:00
2025-05-17 09:53:33 +09:00
2025-05-17 09:53:33 +09:00
2025-03-05 07:26:04 +09:00