one-api/controller
Laisky.Cai 671fe78e44 fix: Add image support to Gemini relay
- Add support for getting base64-encoded images via openAI's image_url.
- Add `context` as a parameter for the function `LogError`.
- Handle the error from `image.GetImageFromUrl` by logging it.
- Convert the role to `user` if it is `system` and add a dummy model message to make Gemini happy.
2023-12-27 03:13:11 +00:00
..
billing.go chore: update error code 2023-09-17 11:30:20 +08:00
channel-billing.go fix: fix unable to set zero value for base url & model mapping 2023-09-18 22:07:17 +08:00
channel-test.go feat: add Google Gemini Pro support (#826) 2023-12-17 12:48:32 +08:00
channel.go feat: able to delete all disabled channels 2023-10-14 17:25:48 +08:00
github.go fix: fix oauth2 state not checking 2023-09-15 00:24:20 +08:00
group.go feat: Refactor message handling and update dependencies 2023-11-17 03:24:55 +00:00
log.go feat: supprt channel priority now & record channel id in log (#484) 2023-09-17 19:18:16 +08:00
misc.go feat: support email domain whitelist (#337) 2023-07-30 12:44:41 +08:00
model.go feat: support gemini-vision-pro 2023-12-24 18:54:32 +08:00
option.go feat: support Tencent's model (close #519) 2023-10-03 14:19:03 +08:00
redemption.go feat: now user can top up via redemption code (close #9) 2023-04-26 17:02:26 +08:00
relay_test.go Merge remote-tracking branch 'origin/upstream/main' 2023-12-18 02:10:13 +00:00
relay-aiproxy.go Merge remote-tracking branch 'origin/upstream/main' 2023-12-12 06:00:29 +00:00
relay-ali.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay-audio.go feat: refactor response parsing logic to support multiple formats (#782) 2023-12-10 18:39:14 +08:00
relay-baidu.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay-claude.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay-gemini.go fix: Add image support to Gemini relay 2023-12-27 03:13:11 +00:00
relay-image.go feat: add condition to validate n value for non-Azure channels (#775) 2023-12-17 19:49:08 +08:00
relay-openai.go refactor: remove consumeQuota related logic (#738) 2023-11-24 20:42:29 +08:00
relay-palm.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay-tencent.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay-text.go fix: Add image support to Gemini relay 2023-12-27 03:13:11 +00:00
relay-utils.go Merge remote-tracking branch 'origin/upstream/main' 2023-12-18 02:10:13 +00:00
relay-xunfei.go fix: fix xunfei panic error (close #820) 2023-12-17 18:06:37 +08:00
relay-zhipu.go fix: openai response should contains model (#841) 2023-12-24 16:58:31 +08:00
relay.go Merge remote-tracking branch 'origin/upstream/main' 2023-12-27 02:14:34 +00:00
token.go refactor: Refactor token handling in the controller 2023-11-16 05:24:56 +00:00
user.go feat: Implement API endpoints for user management and information retrieval 2023-10-19 09:42:47 +00:00
wechat.go feat: support aff now (close #75) 2023-06-17 18:12:58 +08:00