Skip to content

Commit 939b186

Browse files
committed
fix: undo changes to convex and remove unused stuff in cohere
1 parent 91823e6 commit 939b186

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

plugins/cohere/src/command.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import type { GenerateResponseData } from 'genkit';
1817
import { Message, GenerationCommonConfigSchema, z } from 'genkit';
1918
import type {
2019
GenerateRequest,

plugins/cohere/src/embedder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import type { Genkit } from 'genkit';
1817
import { z } from 'genkit';
1918
import { embedderRef as createEmbedderRef } from 'genkit/embedder';
2019
import { CohereClient } from 'cohere-ai';

plugins/cohere/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
import type { Genkit } from 'genkit';
1817
import { genkitPluginV2, ResolvableAction } from 'genkit/plugin';
1918
import { CohereClient } from 'cohere-ai';
2019

2120
import {
2221
cohereEmbedder,
2322
SUPPORTED_EMBEDDING_MODELS,
24-
embedMultilingual4,
2523
} from './embedder';
2624
import { commandModel, SUPPORTED_COMMAND_MODELS } from './command';
2725

plugins/convex/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { EmbedderArgument } from 'genkit';
17+
import { EmbedderArgument } from '@genkit-ai/ai/embedder';
1818

19-
import { genkitPluginV2, PluginProvider } from 'genkit/plugin';
19+
import { genkitPlugin, PluginProvider } from '@genkit-ai/core';
2020
import * as z from 'zod';
2121

2222
interface Params<EmbedderCustomOptions extends z.ZodTypeAny> {
@@ -28,12 +28,12 @@ interface Params<EmbedderCustomOptions extends z.ZodTypeAny> {
2828
export function convexVectorstore<EmbedderCustomOptions extends z.ZodTypeAny>(
2929
params: Params<EmbedderCustomOptions>[]
3030
): PluginProvider {
31-
const plugin = genkitPluginV2({
32-
name: 'convexVectorstore',
33-
init: async (params: Params<EmbedderCustomOptions>[]) => ({
31+
const plugin = genkitPlugin(
32+
'convexVectorstore',
33+
async (params: Params<EmbedderCustomOptions>[]) => ({
3434
// retrievers: params.map((p) => configureDevLocalRetriever(p)),
3535
})
36-
});
36+
);
3737
return plugin(params);
3838
}
3939

0 commit comments

Comments
 (0)