File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
packages/inference/src/providers Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,17 @@ export abstract class TaskProviderHelper {
26
26
outputType ?: "url" | "blob"
27
27
) : unknown ;
28
28
29
+ /**
30
+ * Prepare the route for the request
31
+ * Needs to be implemented in the subclasses.
32
+ */
33
+ abstract makeRoute ( params : UrlParams ) : string ;
34
+ /**
35
+ * Prepare the payload for the request
36
+ * Needs to be implemented in the subclasses.
37
+ */
38
+ abstract preparePayload ( params : BodyParams ) : unknown ;
39
+
29
40
/**
30
41
* Prepare the base URL for the request
31
42
*/
@@ -52,12 +63,6 @@ export abstract class TaskProviderHelper {
52
63
return `${ baseUrl } /${ route } ` ;
53
64
}
54
65
55
- /**
56
- * Prepare the route for the request
57
- * Needs to be implemented in the subclasses.
58
- */
59
- abstract makeRoute ( params : UrlParams ) : string ;
60
-
61
66
/**
62
67
* Prepare the headers for the request
63
68
*/
@@ -68,12 +73,6 @@ export abstract class TaskProviderHelper {
68
73
}
69
74
return headers ;
70
75
}
71
-
72
- /**
73
- * Prepare the payload for the request
74
- * Needs to be implemented in the subclasses.
75
- */
76
- abstract preparePayload ( params : BodyParams ) : unknown ;
77
76
}
78
77
79
78
export class BaseConversationalTask extends TaskProviderHelper {
You can’t perform that action at this time.
0 commit comments