mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-16 22:57:53 +08:00
- Update OpenAI and OpenAI Responses to Interactions request converters to return `([]byte, error)` - Register request converters directly in internal translator registry instead of sdktranslator checked requests
20 lines
483 B
Go
20 lines
483 B
Go
package interactions
|
|
|
|
import (
|
|
. "github.com/router-for-me/CLIProxyAPI/v8/internal/constant"
|
|
"github.com/router-for-me/CLIProxyAPI/v8/internal/interfaces"
|
|
"github.com/router-for-me/CLIProxyAPI/v8/internal/translator/translator"
|
|
)
|
|
|
|
func init() {
|
|
translator.Register(
|
|
Interactions,
|
|
Codex,
|
|
ConvertInteractionsRequestToCodex,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertCodexResponseToInteractions,
|
|
NonStream: ConvertCodexResponseToInteractionsNonStream,
|
|
},
|
|
)
|
|
}
|