完善文档页文本向量与重排序调用支持

This commit is contained in:
2026-05-31 21:18:41 +08:00
parent 8ee7a7969e
commit 644a6f9d17
24 changed files with 1945 additions and 71 deletions
@@ -47,7 +47,7 @@ func billingResourcesForModelTypes(modelTypes []string) map[string]bool {
resources := map[string]bool{}
for _, modelType := range modelTypes {
switch normalizeBillingType(modelType) {
case "chat", "text", "responses", "text_generate", "text_embedding", "embedding",
case "chat", "text", "responses", "text_generate", "text_embedding", "embedding", "text_rerank", "rerank",
"image_analysis", "video_understanding", "audio_understanding", "omni", "tools_call":
resources["text"] = true
case "image", "images.generations", "image_generate":