mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
20 lines
463 B
Go
20 lines
463 B
Go
package chat_completions
|
|
|
|
import (
|
|
. "github.com/router-for-me/CLIProxyAPI/v6/internal/constant"
|
|
"github.com/router-for-me/CLIProxyAPI/v6/internal/interfaces"
|
|
"github.com/router-for-me/CLIProxyAPI/v6/internal/translator/translator"
|
|
)
|
|
|
|
func init() {
|
|
translator.Register(
|
|
OpenAI,
|
|
Codex,
|
|
ConvertOpenAIRequestToCodex,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertCodexResponseToOpenAI,
|
|
NonStream: ConvertCodexResponseToOpenAINonStream,
|
|
},
|
|
)
|
|
}
|