a2a98258fa
cargo fmt
2025-07-23 18:59:10 +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
bb59b45eff
cargo clippy
2025-07-10 16:10:45 +09:00
66b12711ab
Add models api
2025-05-17 09:53:33 +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
3b296c8339
Fix audio transcription
2025-02-01 11:51:48 +09:00
b763a662d6
Add openrouter docs
2025-01-13 22:49:07 +09:00
85d204faf9
Add post_form_raw
2024-12-15 18:17:10 +09:00
78c8fee839
Refactoring new client
2024-11-10 15:03:34 +09:00
0ce0d3bbb7
cargo fmt
2024-11-09 08:45:34 +09:00
51b9491de9
Fix input type for embedding
2024-11-09 08:44:15 +09:00
5867baa3ef
refactoring function
2024-10-16 08:46:01 +09:00
8d5daac3b4
Add realtime api
2024-10-09 07:36:44 +09:00
b3db30aa6f
Update vision example since GPT4_VISION_PREVIEW went down
2024-09-25 17:08:49 -07:00
49298933bf
Add batch api
2024-08-29 00:18:26 +09:00
a0bd769dbb
Add gpt-4o mini model
2024-07-19 05:48:23 +09:00
4a11c78393
add tool role for ChatCompletionMessage
2024-07-17 10:03:54 +08:00
7e10e3a293
add tool_calls to ChatCompletionMessage
2024-07-17 09:45:50 +08:00
3e5286dad6
* use reqwest
...
* support multipart form
* fix audio apits
2024-07-09 18:47:51 +09:00
a0bde8fec8
Assistant beta v2
2024-06-10 19:31:03 +09:00
1a8b5e38b6
Add GPT4o models
2024-05-14 13:30:57 +09:00
6a9d8dec7d
Add response header
2024-03-18 06:32:02 +09:00
f1685c96bd
Add dimensions parameter
2024-01-29 05:03:13 +09:00
9b90bf75a7
Add serialize
2024-01-26 22:25:51 +09:00
4e6fbcedd5
Add embedding models
2024-01-26 11:13:24 +09:00
399c3cdf5c
Fix command
2024-01-07 16:37:58 +09:00
f99645c37e
Add vision
2024-01-07 16:33:58 +09:00
5d7d335c74
Fix Deprecated
2024-01-07 07:39:36 +09:00
bfedc7f3cd
Impl Default trait for JSONSchemaDefine
...
In most cases, only a few properties of JSONSchemaDefine are used, and it seems cumbersome to explicitly declare other properties.
2023-12-30 01:57:45 +08:00
1f56b88f10
Add text-to-speech
2023-12-24 15:30:49 +08:00
6e136b7281
Update ChatCompletionChoice with optional finish_reason and finish_details
2023-11-21 13:06:20 -08:00
2daafb8b4c
Cargo fmt
2023-11-21 22:28:56 +09:00
445b1e1480
clone result not store. Now assistant will fail to deserialize into Assitant Object
2023-11-21 09:10:02 +01:00
cfca665c21
Add assistant api
2023-11-11 18:24:51 +09:00
a9be9efdfe
feat: add chain method to create Request instance
2023-10-17 15:14:31 +08:00
6431c9cbdd
Fix function call type
2023-10-06 17:19:46 +09:00
3a37c625e0
Add function call type
2023-10-04 16:57:13 +09:00
f453dc9323
chore: update examples
2023-08-25 17:29:36 +05:30
5ee3321ed0
Fix message
2023-07-25 12:02:34 +09:00
a0c319cd54
Remove Option
2023-07-25 11:48:52 +09:00
8280733f05
Cargo fmt
2023-07-16 21:58:43 +09:00
2c6db93a79
Add function in role
2023-07-16 21:53:52 +09:00
cf8f890ad7
Add parameter
2023-07-10 08:07:28 +09:00
6292d78507
Support function calling
2023-06-19 18:24:27 +09:00
0f2194ebb8
Fix embedding response
2023-05-08 06:44:45 +09:00
5db42ecf0c
Add GPT4 models
2023-03-18 06:25:30 +09:00
6a68775555
Add chat gpt api
2023-03-02 12:20:01 +09:00
2acadf6439
Change name
2022-12-12 13:34:34 +09:00