mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-15 19:47:24 +08:00
- Replace tidwall/gjson and tidwall/sjson with github.com/MoeForge/moego/ojson and encoding/base64 with github.com/MoeForge/moego/base64 across the main module and examples - Introduce cross-method *ojson.Doc request rewriting pipelines across thinking, signature, client/codex, runtime/executor/helps, pluginhost, and all provider executors with FinalizePayloadDoc as the final semantic barrier - Convert all consecutive JSON mutations (>= 2 Set/SetRaw/Delete operations) to batch edits on ojson.Doc - Upgrade read-only byte paths to ojson.GetBytesNoCopy, ojson.GetManyBytesNoCopy, and util.ParseGJSONBytesNoCopy with explicit strings.Clone ownership protection across streaming and persistent state - Use base64.StdEncoding.ValidateString for zero-allocation signature checks and base64.EncodeDataURL for single-allocation data URL construction
17 lines
413 B
Modula-2
17 lines
413 B
Modula-2
module github.com/router-for-me/CLIProxyAPI/v7/examples/realtime-openai-go
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/MoeForge/moego v0.1.0-alpha.1
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/openai/openai-go/v3 v3.50.0
|
|
)
|
|
|
|
require (
|
|
github.com/tidwall/gjson v1.19.0 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tidwall/sjson v1.2.5 // indirect
|
|
)
|