mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-28 22:26:39 +08:00
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. |
||
---|---|---|
.. | ||
adaptor | ||
apitype | ||
billing | ||
channeltype | ||
constant | ||
controller | ||
meta | ||
model | ||
relaymode | ||
adaptor_test.go | ||
adaptor.go |