one-api/common/image
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
..
image_test.go fix: fix base64 image parse error (#858) 2023-12-24 15:35:56 +08:00
image.go fix: Add image support to Gemini relay 2023-12-27 03:13:11 +00:00