mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
fix(misc): update user agent string for opencode
This commit is contained in:
@@ -36,7 +36,7 @@ var opencodeCodexInstructions string
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
codexUserAgentKey = "__cpa_user_agent"
|
codexUserAgentKey = "__cpa_user_agent"
|
||||||
userAgentOpenAISDK = "ai-sdk/openai/"
|
userAgentOpenAISDK = "opencode/"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InjectCodexUserAgent(raw []byte, userAgent string) []byte {
|
func InjectCodexUserAgent(raw []byte, userAgent string) []byte {
|
||||||
|
|||||||
Reference in New Issue
Block a user