one-api/relay/adaptor/gemini
mxdlzg 4798886db1 feat: update Gemini adaptor to support custom response format
The code changes in the `main.go` file update the Gemini adaptor to support custom response formats. It adds a `mimeTypeMap` variable to map response format types to MIME types. The `ConvertRequest` function now checks if the `ResponseFormat` field is provided in the request and sets the appropriate response MIME type and schema in the `geminiRequest` object.
2024-10-24 10:52:04 +08:00
..
adaptor.go feat: support gemini embeddings (text-embedding-004,embedding-001) (#1475) 2024-05-29 01:17:32 +08:00
constants.go feat: update gemini model and price (#1705) 2024-08-06 23:43:33 +08:00
main.go feat: update Gemini adaptor to support custom response format 2024-10-24 10:52:04 +08:00
model.go feat: update Gemini adaptor to support custom response format 2024-10-24 10:52:04 +08:00