supercompat 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +106 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -43
- package/dist/index.d.ts +60 -43
- package/dist/index.js +106 -55
- package/dist/index.js.map +1 -1
- package/dist/supercompat.cjs +229 -19
- package/dist/supercompat.cjs.map +1 -1
- package/dist/supercompat.d.cts +2 -2
- package/dist/supercompat.d.ts +2 -2
- package/dist/supercompat.js +229 -19
- package/dist/supercompat.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -14,40 +14,55 @@ import { PrismaClient } from '@prisma/client';
|
|
|
14
14
|
declare const groqClientAdapter: ({ groq, }: {
|
|
15
15
|
groq: any;
|
|
16
16
|
}) => {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
client: any;
|
|
18
|
+
routeHandlers: {
|
|
19
|
+
'^/v1/chat/completions$': {
|
|
20
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
declare const openaiClientAdapter: ({ openai, }: {
|
|
23
26
|
openai: OpenAI;
|
|
24
27
|
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
client: OpenAI;
|
|
29
|
+
requestHandlers: {
|
|
30
|
+
'^/v1/chat/completions$': {
|
|
31
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
32
|
+
};
|
|
27
33
|
};
|
|
28
34
|
};
|
|
29
35
|
|
|
30
36
|
declare const mistralClientAdapter: ({ mistral, }: {
|
|
31
37
|
mistral: Mistral;
|
|
32
38
|
}) => {
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
client: Mistral;
|
|
40
|
+
routeHandlers: {
|
|
41
|
+
'^/v1/chat/completions$': {
|
|
42
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
43
|
+
};
|
|
35
44
|
};
|
|
36
45
|
};
|
|
37
46
|
|
|
38
47
|
declare const perplexityClientAdapter: ({ perplexity, }: {
|
|
39
48
|
perplexity: OpenAI;
|
|
40
49
|
}) => {
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
client: OpenAI;
|
|
51
|
+
routeHandlers: {
|
|
52
|
+
'^/v1/chat/completions$': {
|
|
53
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
54
|
+
};
|
|
43
55
|
};
|
|
44
56
|
};
|
|
45
57
|
|
|
46
58
|
declare const anthropicClientAdapter: ({ anthropic, }: {
|
|
47
59
|
anthropic: Anthropic;
|
|
48
60
|
}) => {
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
client: Anthropic;
|
|
62
|
+
routeHandlers: {
|
|
63
|
+
'^/v1/chat/completions$': {
|
|
64
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
65
|
+
};
|
|
51
66
|
};
|
|
52
67
|
};
|
|
53
68
|
|
|
@@ -61,40 +76,42 @@ declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEven
|
|
|
61
76
|
declare const prismaStorageAdapter: ({ prisma, }: {
|
|
62
77
|
prisma: PrismaClient;
|
|
63
78
|
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(
|
|
68
|
-
|
|
79
|
+
routeHandlers: {
|
|
80
|
+
'^/v1/threads$': {
|
|
81
|
+
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
82
|
+
json: () => Promise<{
|
|
83
|
+
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
84
|
+
(options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
85
|
+
}>;
|
|
69
86
|
}>;
|
|
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
|
-
|
|
87
|
+
};
|
|
88
|
+
'^/v1/threads/([^/]+)/messages$': {
|
|
89
|
+
post: (urlString: string, options: any) => Promise<Response & {
|
|
90
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
91
|
+
}>;
|
|
92
|
+
get: (urlString: string) => Promise<Response & {
|
|
93
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
'^/v1/threads/([^/]+)/runs$': {
|
|
97
|
+
get: (urlString: string) => Promise<Response & {
|
|
98
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
99
|
+
}>;
|
|
100
|
+
post: (urlString: string, options: any) => Promise<Response & {
|
|
101
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run | openai_streaming_mjs.Stream<openai_resources_beta_assistants_mjs.AssistantStreamEvent>>>;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)$': {
|
|
105
|
+
get: (urlString: string) => Promise<Response & {
|
|
106
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run>>;
|
|
107
|
+
}>;
|
|
108
|
+
};
|
|
109
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)/steps$': {
|
|
110
|
+
get: (urlString: string) => Promise<Response>;
|
|
111
|
+
};
|
|
112
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)/submit_tool_outputs$': {
|
|
113
|
+
post: (urlString: string, options: any) => Promise<Response>;
|
|
114
|
+
};
|
|
98
115
|
};
|
|
99
116
|
};
|
|
100
117
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14,40 +14,55 @@ import { PrismaClient } from '@prisma/client';
|
|
|
14
14
|
declare const groqClientAdapter: ({ groq, }: {
|
|
15
15
|
groq: any;
|
|
16
16
|
}) => {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
client: any;
|
|
18
|
+
routeHandlers: {
|
|
19
|
+
'^/v1/chat/completions$': {
|
|
20
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
declare const openaiClientAdapter: ({ openai, }: {
|
|
23
26
|
openai: OpenAI;
|
|
24
27
|
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
client: OpenAI;
|
|
29
|
+
requestHandlers: {
|
|
30
|
+
'^/v1/chat/completions$': {
|
|
31
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
32
|
+
};
|
|
27
33
|
};
|
|
28
34
|
};
|
|
29
35
|
|
|
30
36
|
declare const mistralClientAdapter: ({ mistral, }: {
|
|
31
37
|
mistral: Mistral;
|
|
32
38
|
}) => {
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
client: Mistral;
|
|
40
|
+
routeHandlers: {
|
|
41
|
+
'^/v1/chat/completions$': {
|
|
42
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
43
|
+
};
|
|
35
44
|
};
|
|
36
45
|
};
|
|
37
46
|
|
|
38
47
|
declare const perplexityClientAdapter: ({ perplexity, }: {
|
|
39
48
|
perplexity: OpenAI;
|
|
40
49
|
}) => {
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
client: OpenAI;
|
|
51
|
+
routeHandlers: {
|
|
52
|
+
'^/v1/chat/completions$': {
|
|
53
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
54
|
+
};
|
|
43
55
|
};
|
|
44
56
|
};
|
|
45
57
|
|
|
46
58
|
declare const anthropicClientAdapter: ({ anthropic, }: {
|
|
47
59
|
anthropic: Anthropic;
|
|
48
60
|
}) => {
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
client: Anthropic;
|
|
62
|
+
routeHandlers: {
|
|
63
|
+
'^/v1/chat/completions$': {
|
|
64
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
65
|
+
};
|
|
51
66
|
};
|
|
52
67
|
};
|
|
53
68
|
|
|
@@ -61,40 +76,42 @@ declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEven
|
|
|
61
76
|
declare const prismaStorageAdapter: ({ prisma, }: {
|
|
62
77
|
prisma: PrismaClient;
|
|
63
78
|
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(
|
|
68
|
-
|
|
79
|
+
routeHandlers: {
|
|
80
|
+
'^/v1/threads$': {
|
|
81
|
+
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
82
|
+
json: () => Promise<{
|
|
83
|
+
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
84
|
+
(options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
85
|
+
}>;
|
|
69
86
|
}>;
|
|
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
|
-
|
|
87
|
+
};
|
|
88
|
+
'^/v1/threads/([^/]+)/messages$': {
|
|
89
|
+
post: (urlString: string, options: any) => Promise<Response & {
|
|
90
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
91
|
+
}>;
|
|
92
|
+
get: (urlString: string) => Promise<Response & {
|
|
93
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
'^/v1/threads/([^/]+)/runs$': {
|
|
97
|
+
get: (urlString: string) => Promise<Response & {
|
|
98
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
99
|
+
}>;
|
|
100
|
+
post: (urlString: string, options: any) => Promise<Response & {
|
|
101
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run | openai_streaming_mjs.Stream<openai_resources_beta_assistants_mjs.AssistantStreamEvent>>>;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)$': {
|
|
105
|
+
get: (urlString: string) => Promise<Response & {
|
|
106
|
+
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run>>;
|
|
107
|
+
}>;
|
|
108
|
+
};
|
|
109
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)/steps$': {
|
|
110
|
+
get: (urlString: string) => Promise<Response>;
|
|
111
|
+
};
|
|
112
|
+
'^/v1/threads/([^/]+)/runs/([^/]+)/submit_tool_outputs$': {
|
|
113
|
+
post: (urlString: string, options: any) => Promise<Response>;
|
|
114
|
+
};
|
|
98
115
|
};
|
|
99
116
|
};
|
|
100
117
|
|
package/dist/index.js
CHANGED
|
@@ -293,11 +293,11 @@ import OpenAI from "openai";
|
|
|
293
293
|
import { assign, partob } from "radash";
|
|
294
294
|
var requestHandlers = function(param) {
|
|
295
295
|
var client = param.client, storage = param.storage, runAdapter = param.runAdapter;
|
|
296
|
-
return assign(client, storage({
|
|
296
|
+
return assign(client.requestHandlers, storage && runAdapter ? storage({
|
|
297
297
|
runAdapter: partob(runAdapter, {
|
|
298
298
|
client: client
|
|
299
299
|
})
|
|
300
|
-
}));
|
|
300
|
+
}).routeHandlers : {});
|
|
301
301
|
};
|
|
302
302
|
// src/supercompatFetch/findRequestHandler.ts
|
|
303
303
|
var findRequestHandler = function(param) {
|
|
@@ -310,6 +310,21 @@ var findRequestHandler = function(param) {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
|
+
// src/supercompatFetch/originalFetch.ts
|
|
314
|
+
var originalFetch = function(param) {
|
|
315
|
+
var args = param.args, client = param.client;
|
|
316
|
+
if (client.client) {
|
|
317
|
+
var _args = _sliced_to_array(args, 2), url = _args[0], options = _args[1];
|
|
318
|
+
var headers = _object_spread_props(_object_spread({}, options.headers), {
|
|
319
|
+
authorization: client.client.defaultHeaders().Authorization
|
|
320
|
+
});
|
|
321
|
+
return client.client.fetch(url, _object_spread_props(_object_spread({}, options), {
|
|
322
|
+
headers: headers
|
|
323
|
+
}));
|
|
324
|
+
} else {
|
|
325
|
+
return fetch.apply(void 0, _to_consumable_array(args));
|
|
326
|
+
}
|
|
327
|
+
};
|
|
313
328
|
// src/supercompatFetch/index.ts
|
|
314
329
|
var supercompatFetch = function(param) {
|
|
315
330
|
var client = param.client, storage = param.storage, runAdapter = param.runAdapter;
|
|
@@ -318,24 +333,43 @@ var supercompatFetch = function(param) {
|
|
|
318
333
|
storage: storage,
|
|
319
334
|
runAdapter: runAdapter
|
|
320
335
|
});
|
|
321
|
-
return function() {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
336
|
+
return /*#__PURE__*/ _async_to_generator(function() {
|
|
337
|
+
var _len, args, _key, _args, url, options, pathHandler, requestHandler;
|
|
338
|
+
var _arguments = arguments;
|
|
339
|
+
return _ts_generator(this, function(_state) {
|
|
340
|
+
for(_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
341
|
+
args[_key] = _arguments[_key];
|
|
342
|
+
}
|
|
343
|
+
_args = _sliced_to_array(args, 2), url = _args[0], options = _args[1];
|
|
344
|
+
pathHandler = findRequestHandler({
|
|
345
|
+
url: url,
|
|
346
|
+
requestHandlers: requestHandlers2
|
|
347
|
+
});
|
|
348
|
+
if (!pathHandler) {
|
|
349
|
+
return [
|
|
350
|
+
2,
|
|
351
|
+
originalFetch({
|
|
352
|
+
client: client,
|
|
353
|
+
args: args
|
|
354
|
+
})
|
|
355
|
+
];
|
|
356
|
+
}
|
|
357
|
+
requestHandler = pathHandler[options === null || options === void 0 ? void 0 : options.method];
|
|
358
|
+
if (!requestHandler) {
|
|
359
|
+
return [
|
|
360
|
+
2,
|
|
361
|
+
originalFetch({
|
|
362
|
+
client: client,
|
|
363
|
+
args: args
|
|
364
|
+
})
|
|
365
|
+
];
|
|
366
|
+
}
|
|
367
|
+
return [
|
|
368
|
+
2,
|
|
369
|
+
requestHandler.apply(void 0, _to_consumable_array(args))
|
|
370
|
+
];
|
|
329
371
|
});
|
|
330
|
-
|
|
331
|
-
return fetch.apply(void 0, _to_consumable_array(args));
|
|
332
|
-
}
|
|
333
|
-
var requestHandler = pathHandler[options === null || options === void 0 ? void 0 : options.method];
|
|
334
|
-
if (!requestHandler) {
|
|
335
|
-
return fetch.apply(void 0, _to_consumable_array(args));
|
|
336
|
-
}
|
|
337
|
-
return requestHandler.apply(void 0, _to_consumable_array(args));
|
|
338
|
-
};
|
|
372
|
+
});
|
|
339
373
|
};
|
|
340
374
|
// src/supercompat.ts
|
|
341
375
|
var supercompat = function(param) {
|
|
@@ -534,9 +568,12 @@ var completions = function(param) {
|
|
|
534
568
|
var groqClientAdapter = function(param) {
|
|
535
569
|
var groq = param.groq;
|
|
536
570
|
return {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
571
|
+
client: groq,
|
|
572
|
+
routeHandlers: {
|
|
573
|
+
"^/v1/chat/completions$": completions({
|
|
574
|
+
groq: groq
|
|
575
|
+
})
|
|
576
|
+
}
|
|
540
577
|
};
|
|
541
578
|
};
|
|
542
579
|
// src/adapters/client/openaiClientAdapter/completions/post.ts
|
|
@@ -724,9 +761,12 @@ var completions2 = function(param) {
|
|
|
724
761
|
var openaiClientAdapter = function(param) {
|
|
725
762
|
var openai = param.openai;
|
|
726
763
|
return {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
764
|
+
client: openai,
|
|
765
|
+
requestHandlers: {
|
|
766
|
+
"^/v1/chat/completions$": completions2({
|
|
767
|
+
openai: openai
|
|
768
|
+
})
|
|
769
|
+
}
|
|
730
770
|
};
|
|
731
771
|
};
|
|
732
772
|
// src/adapters/client/mistralClientAdapter/completions/post.ts
|
|
@@ -914,9 +954,12 @@ var completions3 = function(param) {
|
|
|
914
954
|
var mistralClientAdapter = function(param) {
|
|
915
955
|
var mistral = param.mistral;
|
|
916
956
|
return {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
957
|
+
client: mistral,
|
|
958
|
+
routeHandlers: {
|
|
959
|
+
"^/v1/chat/completions$": completions3({
|
|
960
|
+
mistral: mistral
|
|
961
|
+
})
|
|
962
|
+
}
|
|
920
963
|
};
|
|
921
964
|
};
|
|
922
965
|
// src/adapters/client/perplexityClientAdapter/completions/post.ts
|
|
@@ -1125,9 +1168,12 @@ var completions4 = function(param) {
|
|
|
1125
1168
|
var perplexityClientAdapter = function(param) {
|
|
1126
1169
|
var perplexity = param.perplexity;
|
|
1127
1170
|
return {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1171
|
+
client: perplexity,
|
|
1172
|
+
routeHandlers: {
|
|
1173
|
+
"^/v1/chat/completions$": completions4({
|
|
1174
|
+
perplexity: perplexity
|
|
1175
|
+
})
|
|
1176
|
+
}
|
|
1131
1177
|
};
|
|
1132
1178
|
};
|
|
1133
1179
|
// src/adapters/client/anthropicClientAdapter/completions/post.ts
|
|
@@ -1471,9 +1517,12 @@ var completions5 = function(param) {
|
|
|
1471
1517
|
var anthropicClientAdapter = function(param) {
|
|
1472
1518
|
var anthropic = param.anthropic;
|
|
1473
1519
|
return {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1520
|
+
client: anthropic,
|
|
1521
|
+
routeHandlers: {
|
|
1522
|
+
"^/v1/chat/completions$": completions5({
|
|
1523
|
+
anthropic: anthropic
|
|
1524
|
+
})
|
|
1525
|
+
}
|
|
1477
1526
|
};
|
|
1478
1527
|
};
|
|
1479
1528
|
// src/adapters/run/completionsRunAdapter/index.ts
|
|
@@ -3344,27 +3393,29 @@ var prismaStorageAdapter = function(param) {
|
|
|
3344
3393
|
return function(param) {
|
|
3345
3394
|
var runAdapter = param.runAdapter;
|
|
3346
3395
|
return {
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3396
|
+
routeHandlers: {
|
|
3397
|
+
"^/v1/threads$": threads({
|
|
3398
|
+
prisma: prisma
|
|
3399
|
+
}),
|
|
3400
|
+
"^/v1/threads/([^/]+)/messages$": messages2({
|
|
3401
|
+
prisma: prisma
|
|
3402
|
+
}),
|
|
3403
|
+
"^/v1/threads/([^/]+)/runs$": runs({
|
|
3404
|
+
prisma: prisma,
|
|
3405
|
+
runAdapter: runAdapter
|
|
3406
|
+
}),
|
|
3407
|
+
"^/v1/threads/([^/]+)/runs/([^/]+)$": run({
|
|
3408
|
+
prisma: prisma,
|
|
3409
|
+
runAdapter: runAdapter
|
|
3410
|
+
}),
|
|
3411
|
+
"^/v1/threads/([^/]+)/runs/([^/]+)/steps$": steps({
|
|
3412
|
+
prisma: prisma
|
|
3413
|
+
}),
|
|
3414
|
+
"^/v1/threads/([^/]+)/runs/([^/]+)/submit_tool_outputs$": submitToolOutputs({
|
|
3415
|
+
prisma: prisma,
|
|
3416
|
+
runAdapter: runAdapter
|
|
3417
|
+
})
|
|
3418
|
+
}
|
|
3368
3419
|
};
|
|
3369
3420
|
};
|
|
3370
3421
|
};
|