MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / openAICompatModelPoolKey

Function openAICompatModelPoolKey

sdk/cliproxy/auth/conductor.go:1038–1044  ·  view source on GitHub ↗
(auth *Auth, requestedModel string)

Source from the content-addressed store, hash-verified

1036}
1037
1038func openAICompatModelPoolKey(auth *Auth, requestedModel string) string {
1039 base := strings.TrimSpace(thinking.ParseSuffix(requestedModel).ModelName)
1040 if base == "" {
1041 base = strings.TrimSpace(requestedModel)
1042 }
1043 return strings.ToLower(strings.TrimSpace(auth.ID)) + "|" + openAICompatProviderKey(auth) + "|" + strings.ToLower(base)
1044}
1045
1046func (m *Manager) nextModelPoolOffset(key string, size int) int {
1047 if m == nil || size <= 1 {

Calls 2

ParseSuffixFunction · 0.92
openAICompatProviderKeyFunction · 0.85

Tested by

no test coverage detected