supercompat 2.13.0 → 2.15.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 +721 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +558 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -107,6 +107,34 @@ declare const togetherClientAdapter: ({ together, }: {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
declare const googleClientAdapter: ({ google, }: {
|
|
111
|
+
google: OpenAI;
|
|
112
|
+
}) => {
|
|
113
|
+
client: OpenAI;
|
|
114
|
+
requestHandlers: {
|
|
115
|
+
'^/v1/models$': {
|
|
116
|
+
get: (_url: string, _options: any) => Promise<Response>;
|
|
117
|
+
};
|
|
118
|
+
'^/(?:v1|/?openai)/chat/completions$': {
|
|
119
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
declare const ollamaClientAdapter: ({ ollama, }: {
|
|
125
|
+
ollama: OpenAI;
|
|
126
|
+
}) => {
|
|
127
|
+
client: OpenAI;
|
|
128
|
+
requestHandlers: {
|
|
129
|
+
'^/v1/models$': {
|
|
130
|
+
get: (_url: string, _options: any) => Promise<Response>;
|
|
131
|
+
};
|
|
132
|
+
'^/(?:v1|/?openai)/chat/completions$': {
|
|
133
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
|
|
110
138
|
declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEvent, getMessages, }: {
|
|
111
139
|
client: OpenAI;
|
|
112
140
|
run: OpenAI.Beta.Threads.Run;
|
|
@@ -156,4 +184,4 @@ declare const prismaStorageAdapter: ({ prisma, }: {
|
|
|
156
184
|
};
|
|
157
185
|
};
|
|
158
186
|
|
|
159
|
-
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, groqClientAdapter, mistralClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|
|
187
|
+
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, googleClientAdapter, groqClientAdapter, mistralClientAdapter, ollamaClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,34 @@ declare const togetherClientAdapter: ({ together, }: {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
declare const googleClientAdapter: ({ google, }: {
|
|
111
|
+
google: OpenAI;
|
|
112
|
+
}) => {
|
|
113
|
+
client: OpenAI;
|
|
114
|
+
requestHandlers: {
|
|
115
|
+
'^/v1/models$': {
|
|
116
|
+
get: (_url: string, _options: any) => Promise<Response>;
|
|
117
|
+
};
|
|
118
|
+
'^/(?:v1|/?openai)/chat/completions$': {
|
|
119
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
declare const ollamaClientAdapter: ({ ollama, }: {
|
|
125
|
+
ollama: OpenAI;
|
|
126
|
+
}) => {
|
|
127
|
+
client: OpenAI;
|
|
128
|
+
requestHandlers: {
|
|
129
|
+
'^/v1/models$': {
|
|
130
|
+
get: (_url: string, _options: any) => Promise<Response>;
|
|
131
|
+
};
|
|
132
|
+
'^/(?:v1|/?openai)/chat/completions$': {
|
|
133
|
+
post: (_url: string, options: any) => Promise<Response>;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
|
|
110
138
|
declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEvent, getMessages, }: {
|
|
111
139
|
client: OpenAI;
|
|
112
140
|
run: OpenAI.Beta.Threads.Run;
|
|
@@ -156,4 +184,4 @@ declare const prismaStorageAdapter: ({ prisma, }: {
|
|
|
156
184
|
};
|
|
157
185
|
};
|
|
158
186
|
|
|
159
|
-
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, groqClientAdapter, mistralClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|
|
187
|
+
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, googleClientAdapter, groqClientAdapter, mistralClientAdapter, ollamaClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|