zijiren
b21b3b5b46
refactor: abusing goroutines and channel ( #1561 )
...
* refactor: abusing goroutines
* fix: trim data prefix
* refactor: move functions to render package
* refactor: add back trim & flush
---------
Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-06-30 18:36:33 +08:00
Wei Tingjiang
b1520b308b
Try to fix Gemini streaming return being truncated by FinishReason. ( #1477 )
...
1
2024-06-14 00:30:47 +08:00
Wei Tingjiang
9321427c6e
feat: support gemini embeddings (text-embedding-004,embedding-001) ( #1475 )
...
* Refactor Gemini Adaptor to Support Embeddings
* Add new models to ModelList
2024-05-29 01:17:32 +08:00
JustSong
04b49aa0ec
chore: use StringContent() to convert response to text
2024-04-27 15:41:02 +08:00
Wei Tingjiang
ef88497f25
fix: refactor Gemini adaptor to support streaming content generation ( #1382 )
2024-04-27 15:39:59 +08:00
JustSong
9026ec7510
feat: support cloudflare now
2024-04-26 23:05:48 +08:00
Wei Tingjiang
779b747e9e
feat: add function and tools support for Gemini ( #1358 )
...
* Update model.go
* Support Gemini tool_calls.
* Fix gemini tool calls (also keep support functions).
* Fixed the problem of arguments not being stringified.
Fix panic: candidate.Content.Parts out of range
2024-04-24 21:26:45 +08:00
JustSong
e086da05b1
feat: able to change gemini version ( close #1211 )
2024-04-06 20:48:22 +08:00
JustSong
24ed170e7b
chore: reorganize adaptor related package
2024-04-06 01:36:48 +08:00