feat: openai response /v1/response/compact (#2644)
* 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
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user