ubden commited on
Commit
8433be8
·
verified ·
1 Parent(s): 44e300a

Create test_requests.json

Browse files
Files changed (1) hide show
  1. test_requests.json +142 -0
test_requests.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "test_requests": {
3
+ "image_url_request": {
4
+ "description": "ECG analizi için image URL ile istek",
5
+ "request": {
6
+ "inputs": {
7
+ "query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
8
+ "image": "https://i.imgur.com/7uuejqO.jpeg"
9
+ },
10
+ "parameters": {
11
+ "max_new_tokens": 512,
12
+ "temperature": 0.2,
13
+ "top_p": 0.9,
14
+ "repetition_penalty": 1.05,
15
+ "stop": ["</s>"],
16
+ "return_full_text": false
17
+ }
18
+ }
19
+ },
20
+
21
+ "base64_request": {
22
+ "description": "ECG analizi için base64 encoded image ile istek",
23
+ "request": {
24
+ "inputs": {
25
+ "query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
26
+ "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
27
+ },
28
+ "parameters": {
29
+ "max_new_tokens": 512,
30
+ "temperature": 0.2,
31
+ "top_p": 0.9,
32
+ "repetition_penalty": 1.05,
33
+ "stop": ["</s>"],
34
+ "return_full_text": false
35
+ }
36
+ }
37
+ },
38
+
39
+ "minimal_url_request": {
40
+ "description": "Minimal parametrelerle image URL isteği",
41
+ "request": {
42
+ "inputs": {
43
+ "query": "Analyze this ECG image.",
44
+ "image": "https://i.imgur.com/7uuejqO.jpeg"
45
+ },
46
+ "parameters": {
47
+ "temperature": 0.2
48
+ }
49
+ }
50
+ },
51
+
52
+ "minimal_base64_request": {
53
+ "description": "Minimal parametrelerle base64 isteği",
54
+ "request": {
55
+ "inputs": {
56
+ "query": "Analyze this ECG image.",
57
+ "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
58
+ },
59
+ "parameters": {
60
+ "temperature": 0.2
61
+ }
62
+ }
63
+ },
64
+
65
+ "text_only_request": {
66
+ "description": "Sadece text ile istek (image olmadan)",
67
+ "request": {
68
+ "inputs": {
69
+ "query": "What are the common causes of atrial fibrillation?"
70
+ },
71
+ "parameters": {
72
+ "max_new_tokens": 256,
73
+ "temperature": 0.3,
74
+ "top_p": 0.9
75
+ }
76
+ }
77
+ },
78
+
79
+ "advanced_parameters_request": {
80
+ "description": "Gelişmiş parametrelerle image URL isteği",
81
+ "request": {
82
+ "inputs": {
83
+ "query": "Provide detailed ECG analysis including rhythm, rate, intervals, and potential abnormalities.",
84
+ "image": "https://i.imgur.com/7uuejqO.jpeg"
85
+ },
86
+ "parameters": {
87
+ "max_new_tokens": 1024,
88
+ "temperature": 0.1,
89
+ "top_p": 0.95,
90
+ "repetition_penalty": 1.1,
91
+ "stop": ["</s>", "\n\n"],
92
+ "return_full_text": false,
93
+ "do_sample": true
94
+ }
95
+ }
96
+ }
97
+ },
98
+
99
+ "expected_response_format": {
100
+ "description": "Beklenen response formatı",
101
+ "format": [
102
+ {
103
+ "generated_text": "ECG analysis response text here...",
104
+ "model": "PULSE-7B",
105
+ "processing_method": "pipeline"
106
+ }
107
+ ]
108
+ },
109
+
110
+ "error_response_format": {
111
+ "description": "Hata durumunda response formatı",
112
+ "format": [
113
+ {
114
+ "generated_text": "",
115
+ "error": "Error message here...",
116
+ "model": "PULSE-7B",
117
+ "handler": "Ubden® Team Enhanced Handler",
118
+ "success": false
119
+ }
120
+ ]
121
+ },
122
+
123
+ "usage_notes": {
124
+ "supported_image_formats": [
125
+ "JPEG", "PNG", "GIF", "BMP", "WebP"
126
+ ],
127
+ "supported_input_methods": [
128
+ "HTTP/HTTPS URL",
129
+ "Base64 encoded with data URI prefix",
130
+ "Raw base64 string"
131
+ ],
132
+ "parameter_limits": {
133
+ "max_new_tokens": "1-2048",
134
+ "temperature": "0.01-2.0",
135
+ "top_p": "0.01-1.0",
136
+ "repetition_penalty": "1.0-2.0"
137
+ },
138
+ "query_field_alternatives": [
139
+ "query", "text", "prompt"
140
+ ]
141
+ }
142
+ }