mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-06 16:15:50 +08:00
- Introduced API handlers and executor logic for Google Interactions - Added request and response transformations for OpenAI and Claude Interactions. - Integrated Gemini API with Interactions support. - Updated tests to validate Interactions request parsing and error handling. - Refactored translator logic for Interactions data flows.
20 lines
483 B
Go
20 lines
483 B
Go
package interactions
|
|
|
|
import (
|
|
. "github.com/router-for-me/CLIProxyAPI/v7/internal/constant"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/interfaces"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/translator/translator"
|
|
)
|
|
|
|
func init() {
|
|
translator.Register(
|
|
Interactions,
|
|
Codex,
|
|
ConvertInteractionsRequestToCodex,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertCodexResponseToInteractions,
|
|
NonStream: ConvertCodexResponseToInteractionsNonStream,
|
|
},
|
|
)
|
|
}
|