35 Commits

Author SHA1 Message Date
35d13abdfe . fix links to c03 examples (#37)
The example was renamed from c03-kind.rs to c03-mapper.rs
2025-01-14 13:19:15 -08:00
ed74d44c7a + add DeepSeek support 2025-01-06 08:30:33 -08:00
b318d95526 . update to version v0.1.14 2024-12-08 19:51:28 -08:00
011fb40a04 * prep refactor for custom endpoint 2024-12-08 14:46:51 -08:00
472d4de247 . openai - add 'o1-' model prefix to point to OpenAI Adapter 2024-09-14 20:47:39 -07:00
9d9e739d0e . comments proofing (using genai with custom script) 2024-09-14 20:34:24 -07:00
158efa18ec . #23 - add documentation 2024-09-14 19:54:44 -07:00
d38594d7de + Added ModelMapper scheme (client_builder::with_model_mapper_fn)
! Removed AdapterKindResolver (should use ModelMapper)
! Renamed ModelInfo to ModelIden
2024-08-14 18:16:43 -07:00
65628c7c96 ! now chat:🖨️:print_chat_stream (was utils::print_chat_stream) 2024-07-23 16:18:30 -07:00
f9b54f3d16 . update tests and examples from to 'gpt-4o-mini' (was 'gpt-3.5-turbo') 2024-07-19 16:19:43 -07:00
e4b0d25477 + Add ModelName and ModelInfo types for better efficient request/error context
! now Client::resolve_model_info(model) (was Client::resolve_adapter_kind(mode))
2024-07-19 13:37:18 -07:00
a0d812110e ! New MessageContent type for ChatMessage.content, ChatResponse.content, and StreamEnd.captured_content (only ::Text variant for now) 2024-07-18 14:48:27 -07:00
803df63924 . prep for v0.1.3 2024-07-18 10:52:20 -07:00
cdd16ce3cc . code clean (adapter) 2024-07-17 21:41:25 -07:00
7ae239cf2c + ChatResponse.usage - Implement chat reponse usage for all adapters but Cohere
^ stream capture content/usage - Continue implement for all adapters for Cohere
* tests - setup main tests and tests infra
^ ClientBuilder - Add with_chat_request_options, with_adapter_kind_resolver (passthrough to ClientConfig)
2024-07-17 18:22:45 -07:00
3afe225673 ! now PrintChatStreamOptions::from_print_events (old ...from_print_events) 2024-07-16 22:46:39 -07:00
5800d14ed0 ! client module flatten to root - now genai::Client rather than genai::client::Client 2024-07-09 17:27:42 -07:00
5bf71080e6 ^ (rel #4) ChatRequestOptions - Added support for cascading ChatRequestOptions properties from chat to client 2024-07-08 05:30:49 -07:00
8f503e237a . made public client.resolve_adapter_kind(model) 2024-06-24 14:58:55 +02:00
d8101d4dd5 . minor comment update, and first pass at providers-pricing.json 2024-06-24 14:24:05 +02:00
c519f52ba5 review comments 2024-06-19 21:01:25 -07:00
61aa705ef9 implement groq completions 2024-06-19 09:54:48 -06:00
067c053056 - gemini - update adapter to set "systemInstruction" (Supported in v1beta) 2024-06-10 15:34:54 -07:00
15833d4e9f ^ chat_printer - added PrintChatStreamOptions with print_events 2024-06-10 10:59:02 -07:00
cb2a4a0256 ! add ChatRequestOption and upgraded the client exec_chat and adapters APIs 2024-06-09 20:49:40 -07:00
9ef4b614a7 . clippy clean + resolver fn renaming 2024-06-08 19:19:01 -07:00
9ac3eebf8c + adapter - add Gemini 2024-06-08 18:53:51 -07:00
40c672f9a6 . add util::print_chat_stream 2024-06-07 10:48:06 -07:00
eb1b429585 . 0.0.10-alpha.1 2024-06-07 10:07:22 -07:00
74a69fb824 ^ client support for custom adapter config per AdapterKind (with AuthResolver) 2024-06-06 20:53:47 -07:00
422c1f60ac * refactor - first pass at the AdapterConfig & Resolver pattern (for auth/api_key) 2024-06-06 16:48:29 -07:00
0dcd389b78 . update version to v0.0.6 2024-06-05 23:21:22 -07:00
c2499412ab + adapter - add Cohere
* refactor to support custom WebStream (for Cohere)

+ cohere stream

* web_stream to support custom event stream for Cohere.
2024-06-05 22:57:02 -07:00
0e8de5eb87 . cleanup and readme 2024-06-05 14:26:46 -07:00
f16ab4bf51 * API refactor, and remove providers and 3rd party lib 2024-06-05 10:40:43 -07:00