mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
- Updated all `github.com/luispater/CLIProxyAPI/internal/...` imports to point to `github.com/luispater/CLIProxyAPI/v5/internal/...`. - Adjusted `go.mod` to specify `module github.com/luispater/CLIProxyAPI/v5`.
15 lines
497 B
Go
15 lines
497 B
Go
package responses
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
. "github.com/luispater/CLIProxyAPI/v5/internal/translator/gemini-cli/gemini"
|
|
. "github.com/luispater/CLIProxyAPI/v5/internal/translator/gemini/openai/responses"
|
|
)
|
|
|
|
func ConvertOpenAIResponsesRequestToGeminiCLI(modelName string, inputRawJSON []byte, stream bool) []byte {
|
|
rawJSON := bytes.Clone(inputRawJSON)
|
|
rawJSON = ConvertOpenAIResponsesRequestToGemini(modelName, rawJSON, stream)
|
|
return ConvertGeminiRequestToGeminiCLI(modelName, rawJSON, stream)
|
|
}
|