mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 04:03:18 +00:00
* feat: openai response /v1/response/compact * feat: /v1/response/compact bill * feat: /v1/response/compact * feat: /v1/responses/compact -> codex channel * feat: /v1/responses/compact -> codex channel * feat: /v1/responses/compact -> codex channel * feat: codex channel default models * feat: compact model price * feat: /v1/responses/comapct test
14 lines
317 B
Go
14 lines
317 B
Go
package ratio_setting
|
|
|
|
import "strings"
|
|
|
|
const CompactModelSuffix = "-openai-compact"
|
|
const CompactWildcardModelKey = "*" + CompactModelSuffix
|
|
|
|
func WithCompactModelSuffix(modelName string) string {
|
|
if strings.HasSuffix(modelName, CompactModelSuffix) {
|
|
return modelName
|
|
}
|
|
return modelName + CompactModelSuffix
|
|
}
|