MCPcopy Index your code
hub / github.com/53AI/53AIHub / isEmbeddingModel

Function isEmbeddingModel

api/controller/channel-test.go:414–422  ·  view source on GitHub ↗

isEmbeddingModel 检查是否为 embedding 模型

(modelName string)

Source from the content-addressed store, hash-verified

412
413// isEmbeddingModel 检查是否为 embedding 模型
414func isEmbeddingModel(modelName string) bool {
415 if modelName == "" {
416 return false
417 }
418
419 // 使用模型目录加载器判断是否为 embedding 模型
420 loader := common.GetModelCatalogLoader()
421 return loader.IsEmbeddingModel(modelName)
422}
423
424// isImageGenerationModel 检查是否为图像生成模型
425func isImageGenerationModel(modelName string) bool {

Callers 1

TestChannelFunction · 0.85

Calls 1

IsEmbeddingModelMethod · 0.80

Tested by 1

TestChannelFunction · 0.68