返回 DeepSeek-Reasonix
unknown_vision_test.go
根目录 / internal / provider / openai / unknown_vision_test.go
1 package openai
2
3 import "testing"
4
5 func TestUnknownDeepSeekVisionRequiresDeclaration(t *testing.T) {
6 for _, model := range []string{"deepseek-v5-vision", "future-vision"} {
7 if DeepSeekImageInputAllowed(true, "", model, false, false) {
8 t.Fatalf("%s inferred image support without declaration", model)
9 }
10 if !DeepSeekImageInputAllowed(true, "", model, true, true) {
11 t.Fatalf("%s ignored explicit image declaration", model)
12 }
13 }
14 if !DeepSeekImageInputAllowed(true, "", "deepseek-flash", false, false) {
15 t.Fatal("known multimodal model required a declaration")
16 }
17 if DeepSeekImageInputAllowed(true, "", "deepseek-v4-pro", true, true) {
18 t.Fatal("known text-only model accepted images")
19 }
20 }
21
21 lines GO