-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.drawio
222 lines (222 loc) · 17.5 KB
/
lib.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<mxfile host="65bd71144e">
<diagram id="u8WCpq1Ng7Ui7avYIWPb" name="Page-1">
<mxGraphModel dx="1822" dy="590" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="OpenAI Batch API" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="580" y="150" width="100" height="450" as="geometry"/>
</mxCell>
<mxCell id="3" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;fillColor=#808080;" vertex="1" parent="2">
<mxGeometry x="45" y="70" width="10" height="350" as="geometry"/>
</mxCell>
<mxCell id="24" value="exception" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.067;exitY=0.235;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1.075;entryY=0.56;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="2">
<mxGeometry x="-0.0147" y="1" width="80" relative="1" as="geometry">
<mxPoint x="44.999999999999915" y="320.00000000000006" as="sourcePoint"/>
<mxPoint x="-107.25" y="321.4" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="4" value="Batch Process Monitor" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="417" y="151" width="103" height="449" as="geometry"/>
</mxCell>
<mxCell id="5" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="4">
<mxGeometry x="45" y="134" width="10" height="30" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="4">
<mxGeometry x="45" y="210" width="10" height="50" as="geometry"/>
</mxCell>
<mxCell id="21" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="4">
<mxGeometry x="45" y="60" width="10" height="40" as="geometry"/>
</mxCell>
<mxCell id="38" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="4">
<mxGeometry x="46" y="288" width="10" height="40" as="geometry"/>
</mxCell>
<mxCell id="39" value="unmonitor batchId" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1.308;entryY=0.302;exitX=1.108;exitY=0.862;exitDx=0;exitDy=0;exitPerimeter=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" target="38" parent="4" source="17">
<mxGeometry relative="1" as="geometry">
<mxPoint x="51" y="268" as="sourcePoint"/>
<Array as="points">
<mxPoint x="81" y="253"/>
<mxPoint x="81" y="300"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="6" value="Open AI Batch Lib" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="200" y="150" width="136" height="450" as="geometry"/>
</mxCell>
<mxCell id="7" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="6">
<mxGeometry x="63" y="60" width="10" height="129" as="geometry"/>
</mxCell>
<mxCell id="9" value="submit batch job" style="html=1;verticalAlign=bottom;endArrow=block;entryX=0.033;entryY=0.165;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="6">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="-140" y="107" as="sourcePoint"/>
<mxPoint x="59.99999999999994" y="106.49999999999994" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="16" value="5 min" style="sketch=0;aspect=fixed;html=1;points=[];align=center;image;fontSize=12;image=img/lib/mscae/Clock.svg;" vertex="1" parent="6">
<mxGeometry x="99" y="160" width="50" height="50" as="geometry"/>
</mxCell>
<mxCell id="42" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="6">
<mxGeometry x="63" y="350" width="10" height="70" as="geometry"/>
</mxCell>
<mxCell id="46" value="app pojected batch results" style="html=1;verticalAlign=bottom;endArrow=block;entryX=1.058;entryY=0.946;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="6" target="29">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="63" y="400" as="sourcePoint"/>
<mxPoint x="-67.00000000000009" y="399.9999999999999" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="8" value="App User" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;" vertex="1" parent="1">
<mxGeometry x="-170" y="190" width="30" height="60" as="geometry"/>
</mxCell>
<mxCell id="10" value="submit batch job" style="html=1;verticalAlign=bottom;endArrow=block;exitX=1.333;exitY=0.378;exitDx=0;exitDy=0;exitPerimeter=0;entryX=-0.167;entryY=0.148;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="7">
<mxGeometry x="-0.4113" y="-1" width="80" relative="1" as="geometry">
<mxPoint x="264.3299999999999" y="258.79999999999995" as="sourcePoint"/>
<mxPoint x="623.3299999999999" y="256.76" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="12" value="batch id" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.067;exitY=0.235;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.992;entryY=0.508;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="7">
<mxGeometry x="0.4811" y="2" width="80" relative="1" as="geometry">
<mxPoint x="624.3299999999999" y="273.70000000000005" as="sourcePoint"/>
<mxPoint x="270" y="275" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points">
<mxPoint x="330" y="275"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="13" value="persist + monitor batch id" style="html=1;verticalAlign=bottom;endArrow=block;entryX=-0.167;entryY=0.258;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="273" y="293" as="sourcePoint"/>
<mxPoint x="463.3299999999999" y="292.74" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="14" value="success" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.267;exitY=0.792;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="461.3299999999999" y="308.76" as="sourcePoint"/>
<mxPoint x="272" y="309" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="15" value="batch id" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.267;exitY=0.743;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="7">
<mxGeometry x="-0.0135" width="80" relative="1" as="geometry">
<mxPoint x="250" y="310" as="sourcePoint"/>
<mxPoint x="60" y="306" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="18" value="trigger retriever" style="html=1;verticalAlign=bottom;endArrow=block;" edge="1" parent="1">
<mxGeometry x="0.0264" width="80" relative="1" as="geometry">
<mxPoint x="340" y="375" as="sourcePoint"/>
<mxPoint x="460" y="375" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="20" value="register batch complete event listener" style="html=1;verticalAlign=bottom;endArrow=block;entryX=-0.208;entryY=0.229;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="7">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="60" y="240" as="sourcePoint"/>
<mxPoint x="260.3299999999999" y="239.99999999999994" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="22" value="register batch complete event listener" style="html=1;verticalAlign=bottom;endArrow=block;exitX=0.933;exitY=0.238;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.033;entryY=0.719;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="7" target="21">
<mxGeometry x="-0.0052" width="80" relative="1" as="geometry">
<mxPoint x="307" y="240" as="sourcePoint"/>
<mxPoint x="460" y="240" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="19" value="check batch job status" style="html=1;verticalAlign=bottom;endArrow=block;exitX=1.108;exitY=0.282;exitDx=0;exitDy=0;exitPerimeter=0;entryX=-0.342;entryY=0.439;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="17" target="3">
<mxGeometry x="0.0023" y="1" width="80" relative="1" as="geometry">
<mxPoint x="434.9999999999999" y="375.97" as="sourcePoint"/>
<mxPoint x="620" y="376" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="11" value="init" style="html=1;verticalAlign=bottom;endArrow=block;exitX=1.192;exitY=0.082;exitDx=0;exitDy=0;exitPerimeter=0;entryX=-0.067;entryY=0.194;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="7" target="21">
<mxGeometry x="0.0547" width="80" relative="1" as="geometry">
<mxPoint x="270.3299999999999" y="220.15999999999997" as="sourcePoint"/>
<mxPoint x="459.3299999999999" y="219.76" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="23" value="complete/failure/expired" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.067;exitY=0.235;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1.033;entryY=0.331;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0219" width="80" relative="1" as="geometry">
<mxPoint x="624.3299999999999" y="392.00000000000006" as="sourcePoint"/>
<mxPoint x="472.3299999999999" y="392.78999999999996" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="25" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="1">
<mxGeometry x="263" y="400" width="10" height="70" as="geometry"/>
</mxCell>
<mxCell id="27" value="bacth complete event" style="html=1;verticalAlign=bottom;endArrow=block;entryX=1.208;entryY=0.667;entryDx=0;entryDy=0;entryPerimeter=0;exitX=-0.192;exitY=0.152;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="38" target="25">
<mxGeometry x="-0.2513" y="1" width="80" relative="1" as="geometry">
<mxPoint x="440" y="440" as="sourcePoint"/>
<mxPoint x="273" y="440.217" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="28" value="Example Usage App" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="-10" y="150" width="130" height="450" as="geometry"/>
</mxCell>
<mxCell id="29" value="" style="html=1;points=[];perimeter=orthogonalPerimeter;" vertex="1" parent="28">
<mxGeometry x="60" y="60" width="10" height="360" as="geometry"/>
</mxCell>
<mxCell id="34" value="bacth complete event" style="html=1;verticalAlign=bottom;endArrow=block;exitX=-0.125;exitY=0.277;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1.075;entryY=0.66;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0025" width="80" relative="1" as="geometry">
<mxPoint x="258.75" y="447.73299999999995" as="sourcePoint"/>
<mxPoint x="60.75" y="446.79999999999995" as="targetPoint"/>
<mxPoint as="offset"/>
<Array as="points"/>
</mxGeometry>
</mxCell>
<mxCell id="37" value="While True" style="ellipse;shape=umlControl;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="20" y="80" width="70" height="80" as="geometry"/>
</mxCell>
<mxCell id="41" value="retrieve batch results" style="html=1;verticalAlign=bottom;endArrow=block;entryX=0.033;entryY=0.165;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="60" y="530.5" as="sourcePoint"/>
<mxPoint x="260" y="530" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="44" value="retrieve batch results" style="html=1;verticalAlign=bottom;endArrow=block;entryX=-0.242;entryY=0.885;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="3">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="273" y="530.5" as="sourcePoint"/>
<mxPoint x="620" y="530" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="45" value="openai batch results" style="html=1;verticalAlign=bottom;endArrow=block;entryX=1.158;entryY=0.68;entryDx=0;entryDy=0;entryPerimeter=0;exitX=-0.142;exitY=0.936;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="3" target="42">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="570" y="550" as="sourcePoint"/>
<mxPoint x="629.5799999999999" y="570" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="30" value="execute app loop" style="html=1;verticalAlign=bottom;endArrow=block;entryX=0.033;entryY=0.165;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry x="-0.0021" width="80" relative="1" as="geometry">
<mxPoint x="-150" y="225.5" as="sourcePoint"/>
<mxPoint x="49.99999999999994" y="224.99999999999994" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="33" value="init" style="html=1;verticalAlign=bottom;endArrow=block;exitX=1.125;exitY=0.038;exitDx=0;exitDy=0;exitPerimeter=0;entryX=-0.108;entryY=0.098;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="29" target="7">
<mxGeometry x="0.0547" width="80" relative="1" as="geometry">
<mxPoint x="68.99999999999991" y="221.39999999999998" as="sourcePoint"/>
<mxPoint x="259.9999999999999" y="220" as="targetPoint"/>
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>