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

Function isImageGenerationModel

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

isImageGenerationModel 检查是否为图像生成模型

(modelName string)

Source from the content-addressed store, hash-verified

423
424// isImageGenerationModel 检查是否为图像生成模型
425func isImageGenerationModel(modelName string) bool {
426 if modelName == "" {
427 return false
428 }
429
430 // 使用 gemini adaptor 的判断函数
431 return gemini.IsImageGenerationModel(modelName)
432}
433
434// testImageGenerationChannel 测试图像生成渠道
435func testImageGenerationChannel(ctx context.Context, channel *model.Channel, modelName string) (responseMessage string, err error) {

Callers 1

TestChannelFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestChannelFunction · 0.68