230 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
d00e386600 . proof-read comments (from devai) 2025-01-06 13:02:02 -08:00
a0b3e871bf - Fix AdapterKind::as_lower_str for deepseek 2025-01-06 11:25:03 -08:00
9f8562c932 . update version to 0.1.18-WIP 2025-01-06 08:38:45 -08:00
af7c2b26bc . update version to v0.1.17 2025-01-06 08:33:16 -08:00
ed74d44c7a + add DeepSeek support 2025-01-06 08:30:33 -08:00
8c6ee76702 . minor proof-comment, and add gemini flash-exp 2025-01-05 08:08:47 -08:00
1538d66f88 . update version to 0.1.17-WIP 2025-01-02 14:17:13 -08:00
fe32110976 . update version to v0.1.16 2025-01-02 14:02:10 -08:00
f762c495bc . image support - update ImageSource::Base64 to take Arc<str> 2025-01-02 12:18:18 -08:00
6a2ad452a1 . test - add tests/data/duck-small.jpg for image test 2025-01-01 17:23:59 -08:00
9cbd02b480 . image - change API to have ImageSource containing the data 2025-01-01 11:41:37 -08:00
27013c4511 ^ image - added convenient ContentPart constructors 2025-01-01 10:52:17 -08:00
a759517805 ^ test - add tests for image support 2025-01-01 10:36:38 -08:00
510c0aa903 . clippy clean
. remove example 'images' alias to example c07-image
. MessageContent::text_into_string/str return None when Parts (to avoid leak)
2025-01-01 09:02:52 -08:00
59f0b149b0 Initial image support
Fix image structure for OpenAI API

Implement base64 image support for OpenAI

Image Support: Some APIs (Gemini) require mime type for URL and Base64 format

Image Support: Update OpenAI and Anthropic API to support new image structure

Image Support: Add Gemini 2.0 Flash Experimental support and implement Image support

Image Support: Create example with Image support

Image Support: Fix rebase issue

Image Support: Fix example and make it runnable from cargo
2025-01-01 08:39:08 -08:00
974489e69a . update version to 0.1.16-WIP 2024-12-08 21:03:29 -08:00
9296b844ee . update to v0.1.15 2024-12-08 21:02:28 -08:00
0e7e857fa1 + add back AdapterKind::default_key_env_name 2024-12-08 20:28:33 -08:00
d93b57beab . update version to 0.1.15-WIP 2024-12-08 19:53:13 -08:00
b318d95526 . update to version v0.1.14 2024-12-08 19:51:28 -08:00
a64126b9b5 . refactor - decouple AdapterDispatcher from Adapter trait 2024-12-08 19:39:25 -08:00
c47ae855ae . clippy clean 2024-12-08 19:23:39 -08:00
08912412bd + adapter - xAI adapter 2024-12-08 19:16:08 -08:00
04aafb475a + ServiceTargetResolver added (support for custom endpoint) 2024-12-08 17:34:30 -08:00
011fb40a04 * prep refactor for custom endpoint 2024-12-08 14:46:51 -08:00
175ed484cf . ollama - now use openai v1 api to list models 2024-12-08 10:26:08 -08:00
9d433ab15f . test - add test for Client::all_model_names 2024-12-08 10:20:26 -08:00
45935ace24 . minor code relayout (auth_data) 2024-12-08 09:44:11 -08:00
6ad128fc89 . update to version 0.1.14-WIP 2024-12-07 16:56:09 -08:00
1000f85711 . update to v0.1.13 2024-12-07 16:54:51 -08:00
e439080f16 . ollama - removed workaround for multi-system lack of support (for old ollama) 2024-12-07 16:53:44 -08:00
a32f69dfee . minor update and start prep for v0.1.13 2024-12-07 16:53:18 -08:00
4eed7c3216 + cohere - add stop_sequences support 2024-12-07 13:52:34 -08:00
115a6a3c53 + gemini - add support for stop_sequences 2024-12-07 13:11:14 -08:00
2ddc2d2023 + openai - add stop_sequences support 2024-12-07 13:05:22 -08:00
8f00d665ba . test - anthropic - add test_chat_stop_sequences_ok 2024-12-07 12:42:11 -08:00
9eac22b64a . test - set anthropic test serial (otherwise anthropic wrong say token/min exceed) 2024-12-07 12:22:00 -08:00
90fac76625 . minor clippy_clean 2024-12-07 10:31:31 -08:00
08a51836b4 Add support for stop sequences to anthropic API (#34) 2024-12-05 12:45:06 -08:00
d79f0f03c6 . update version to 0.1.13-WIP 2024-11-18 18:09:01 -08:00
70f5714300 . clippy clean (this one is v0.1.12) 2024-11-18 18:07:08 -08:00
e53aca4f39 . update version to v0.1.12 2024-11-18 18:01:30 -08:00
86f2e5af3d . minor update on llms model names 2024-11-18 17:58:57 -08:00
9ea74ec260 ^ ChatRole - impl Display 2024-11-18 17:54:49 -08:00
1d9c3d638a ^ ChatReqeuust - added from_messages, and append_messages 2024-11-18 17:52:40 -08:00
ae45e26d92 . minor code rename 2024-11-18 17:49:50 -08:00
bc22af6721 . update version to 0.1.12-WIP 2024-11-04 18:47:31 -08:00
320024cd54 . update to version v0.1.11 2024-11-04 18:46:29 -08:00
d946290be4 ^ anthropic - updated the default max_token to the max for given the model (i.e. 3-5 will be 8k) 2024-11-04 18:42:43 -08:00