* feat(codex): support custom base URL * fix(codex): require HTTPS for custom base URL * docs: document changed subscription functions * fix(groups): 展示并区分详情中的默认与自定义地址 * fix(groups): 统一上游地址配置交互与图标位置 * fix(subscription): 绑定额度重置操作的上游地址 * fix(gateway): 隔离旧上游请求的健康状态更新 --------- Co-authored-by: tbphp <tangb7420@gmail.com>
12 lines
281 B
Go
12 lines
281 B
Go
package embedded
|
|
|
|
import "strings"
|
|
|
|
// targetContinuityScope 防止切换目标后复用原上游的会话或推理回放。
|
|
func targetContinuityScope(scope, baseURL string) string {
|
|
if strings.TrimSpace(scope) == "" {
|
|
return ""
|
|
}
|
|
return scope + "\x00target\x00" + baseURL
|
|
}
|