Documentation
¶
Index ¶
- func Handle(args []string) error
- func HandleUsages(args []string) error
- func PatchCodexSSEOutput(body []byte) []byte
- func ReadCodexAuth(path string) (accessToken string, accountID string, err error)
- func StartAPIProxy(baseUrl string, modelMappings []string, port string, verbose bool, ...) error
- func StartCodexProxy(baseUrl string, modelMappings []string, port string, verbose bool, ...) error
- func TransformCodexRequest(data map[string]interface{}, logf func(format string, args ...any))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶ added in v0.0.6
Handle dispatches a llm-proxy CLI invocation to the doc subcommand, the usage summary, the OpenAI/Codex proxies, or a generic --base-url proxy.
func HandleUsages ¶
func PatchCodexSSEOutput ¶ added in v0.0.6
PatchCodexSSEOutput delegates to the unexported patchCodexSSEOutput so the doctest harness can exercise SSE output-item injection.
func ReadCodexAuth ¶ added in v0.0.6
ReadCodexAuth delegates to the unexported readCodexAuth so the doctest harness can exercise auth.json parsing against temp files.
func StartAPIProxy ¶
func StartCodexProxy ¶
func StartCodexProxy(baseUrl string, modelMappings []string, port string, verbose bool, logFile string) error
StartCodexProxy starts a Codex OAuth proxy with the default stream behavior.
func TransformCodexRequest ¶ added in v0.0.6
TransformCodexRequest delegates to the unexported transformCodexRequest so the doctest harness can exercise system-message -> instructions adaptation.
Types ¶
This section is empty.