Laisky.Cai
61d5f0eccf
fix: update request URL formatting in Adaptor for proper query string handling
2024-12-15 02:16:56 +00:00
Laisky.Cai
33493aa8b3
fix: resolve race condition in processChannelRelayError and update API version handling for gemini-2.0-flash-exp
2024-12-15 02:06:35 +00:00
Laisky.Cai
c76ac9043d
feat: add support for gemini-2.0-flash-exp model in constants and billing ratio
2024-12-14 01:10:48 +00:00
Laisky.Cai
082cfbe574
Merge remote-tracking branch 'origin/upstream/main'
2024-11-20 02:09:28 +00:00
wanthigh
c368232f50
fix: changeoptional field to pointer type ( #1907 )
...
* fix:修复在渠道配置中设置模型重定向时,temperature为0被忽略的问题
* fix: set optional fields to pointer type
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-11-09 23:31:46 +08:00
Laisky.Cai
2e5e6faad7
Merge remote-tracking branch 'origin/upstream/main'
2024-10-29 01:15:54 +00:00
Wei Tingjiang
6f13a3bb3c
feat: update Gemini adaptor to support custom response format ( #1892 )
2024-10-27 17:10:50 +08:00
Laisky.Cai
ce57b2e1e1
fix: update Go base image version and reorder model list in constants
2024-09-25 09:55:57 +00:00
Laisky.Cai
4e3782d524
Merge remote-tracking branch 'origin/upstream/main'
2024-08-08 01:51:13 +00:00
longkeyy
b4bfa418a8
feat: update gemini model and price ( #1705 )
2024-08-06 23:43:33 +08:00
Laisky.Cai
c20f27ec45
Merge remote-tracking branch 'origin/upstream/main'
2024-07-01 03:09:33 +00:00
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
Laisky.Cai
115287b8cf
Merge remote-tracking branch 'origin/upstream/main'
2024-06-17 03:16:36 +00:00
Wei Tingjiang
b1520b308b
Try to fix Gemini streaming return being truncated by FinishReason. ( #1477 )
...
1
2024-06-14 00:30:47 +08:00
Laisky.Cai
c524e60d9f
Merge remote-tracking branch 'origin/upstream/main'
2024-05-29 06:12:37 +00: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
Laisky.Cai
ca23dd9a97
Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b'
2024-04-28 01:53:31 +00: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
Laisky.Cai
a516d5eadd
Merge commit 'da0842272ced7bee05a8f43c40a7a8c01b14d09a'
2024-04-25 03:04:12 +00: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
Laisky.Cai
c735b9b4d3
Merge commit '2369025842b828ac38f4427fd1ebab8d03b1fe7f'
2024-04-20 01:07:29 +00:00
Laisky.Cai
9cb3a06dd5
Merge commit 'af543ab8ecb6827cbbc151c2cff181cdc3286274'
2024-04-08 01:13:00 +00:00
JustSong
e086da05b1
feat: able to change gemini version ( close #1211 )
2024-04-06 20:48:22 +08:00
Laisky.Cai
50bab08496
Refactor codebase, introduce relaymode package, update constants and improve consistency
...
- Refactor constant definitions and organization
- Clean up package level variables and functions
- Introduce new `relaymode` and `apitype` packages for constant definitions
- Refactor and simplify code in several packages including `openai`, `relay/channel/baidu`, `relay/util`, `relay/controller`, `relay/channeltype`
- Add helper functions in `relay/channeltype` package to convert channel type constants to corresponding API type constants
- Remove deprecated functions such as `ResponseText2Usage` from `relay/channel/openai/helper.go`
- Modify code in `relay/util/validation.go` and related files to use new `validator.ValidateTextRequest` function
- Rename `util` package to `relaymode` and update related imports in several packages
2024-04-06 05:18:04 +00:00
JustSong
24ed170e7b
chore: reorganize adaptor related package
2024-04-06 01:36:48 +08:00