Commit Graph

347 Commits

Author SHA1 Message Date
8282d9294b v6.0.8 2025-07-23 19:00:08 +09:00
a2a98258fa cargo fmt 2025-07-23 18:59:10 +09:00
5c4326490d Merge pull request #173 from rq3glr16/main
feat: add reasoning parameter support for OpenRouter API
2025-07-23 18:58:26 +09:00
53e6e3b18a 📝 docs: update model names in reasoning example
Update example to use current model naming conventions:
- Change Grok model to grok-3-mini
- Change Claude model to claude-4-sonnet
2025-07-22 14:53:01 +10:00
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
7a50c48bea 6.0.7 2025-07-10 16:13:53 +09:00
b6f93fe872 Merge pull request #172 from dongri/fix-batch-object
Fix batch object
2025-07-10 16:11:48 +09:00
bb59b45eff cargo clippy 2025-07-10 16:10:45 +09:00
65c49a6fdf Fix batch object 2025-07-10 15:47:30 +09:00
27eba21f5a v6.0.6 2025-05-17 09:59:45 +09:00
77671b5e18 Merge pull request #166 from dongri/add-models-api
Add models api
2025-05-17 09:59:09 +09:00
66b12711ab Add models api 2025-05-17 09:53:33 +09:00
14b13d6799 v6.0.5 2025-05-14 15:10:54 +09:00
670ee75c96 Merge pull request #158 from hiteshjoshi/main
Optional auth header and with api keys | works with azure
2025-05-14 15:04:07 +09:00
f9c8d448fb v6.0.4 2025-05-02 10:45:28 +09:00
1944eba88d Merge pull request #162 from dongri/o3
Add o3 models
2025-05-02 10:44:16 +09:00
3d91fcc180 Add o3 models 2025-05-02 10:43:16 +09:00
849664a915 fix url split path
fix for url split slash
2025-04-30 18:54:14 +05:30
6ea6beb4df preserve query parameters from the url 2025-04-30 17:54:22 +05:30
6b2577dc8f typo 2025-04-30 17:28:16 +05:30
389868e12c shorthand for api key in the query string 2025-04-30 17:25:48 +05:30
f722f83659 knit 2025-04-30 17:24:05 +05:30
3f4b39db53 Merge branch 'dongri:main' into main 2025-04-27 16:05:32 +05:30
20687654ff added check for api key version, and only modify url if we have api key set 2025-04-27 16:03:55 +05:30
962baf8457 Merge pull request #160 from jeremy-prater/prater/add_output_audio_server_event_enums
- Add output_audio_buffer.(started/stopped/cleared) server event enums
2025-04-24 08:34:52 +09:00
f34626144e Merge pull request #159 from jeremy-prater/prater/fix_failederror_struct
- Update FailedError struct to correct api schema
2025-04-24 08:34:24 +09:00
ce1f631dc8 - Add output_audio_buffer.(started/stopped/cleared) server event enums 2025-04-22 11:46:09 -07:00
3a93e3e3cc - Update FailedError struct to correct api schema 2025-04-22 11:23:02 -07:00
8f5ecd27be remove unused packages 2025-04-18 13:35:16 +05:30
51dbdff3de debugging 2025-04-18 13:35:16 +05:30
ee34ad140e remove debugging (#2)
* remove debugging
2025-04-18 13:24:35 +05:30
67f5b49985 Optional auth header and with api keys #157 (#1)
* made key optional

* with api version
2025-04-18 12:56:57 +05:30
19458d8253 version bump 2025-04-18 11:32:56 +05:30
c98efb5bab added debugging 2025-04-18 11:02:45 +05:30
4c9793148e v6.0.3 2025-03-15 08:53:23 +09:00
d9a21f2c83 Merge pull request #156 from dongri/fix-realtime-parameter
Fix field
2025-03-15 08:52:34 +09:00
0a04adaf8f Fix field 2025-03-15 08:51:56 +09:00
5ee2984154 v6.0.2 2025-03-12 21:29:37 +09:00
3dacc85c2a Merge pull request #154 from linsmalldragon/main
Add reasoning_content field to ChatCompletionMessageForResponse
2025-03-12 21:28:54 +09:00
06d0c2439b Add reasoning_content field to ChatCompletionMessageForResponse 2025-03-11 17:02:08 +08:00
725526ef51 v6.0.1 2025-03-08 15:26:59 +09:00
dde99ed6d2 Merge pull request #153 from aiscriptdev/main
Derive `Clone` for `ChatCompletionMessageForResponse`
2025-03-08 15:26:22 +09:00
70bd625d38 Merge branch 'dongri:main' into main 2025-03-07 11:54:01 +08:00
f59a6423b9 v6.0.0 2025-03-05 07:42:32 +09:00
d66dc550e8 Merge pull request #152 from dongri/fix-client-headers
Add headers to client
2025-03-05 07:39:41 +09:00
d4bf0a8a9d Cargo fmt 2025-03-05 07:34:59 +09:00
1e0e9519e5 Fix print header 2025-03-05 07:31:28 +09:00
ddeefd256c Add headers to client 2025-03-05 07:26:04 +09:00
2e6ea3eedd v5.2.7 2025-02-28 23:09:12 +09:00
499e4ce7c2 Merge pull request #150 from dongri/chatgpt-4.5
Add gpt4.5 model
2025-02-28 23:06:44 +09:00