File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- import type { GenerateResponseData } from 'genkit' ;
1817import { Message , GenerationCommonConfigSchema , z } from 'genkit' ;
1918import type {
2019 GenerateRequest ,
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- import type { Genkit } from 'genkit' ;
1817import { z } from 'genkit' ;
1918import { embedderRef as createEmbedderRef } from 'genkit/embedder' ;
2019import { CohereClient } from 'cohere-ai' ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- import type { Genkit } from 'genkit' ;
1817import { genkitPluginV2 , ResolvableAction } from 'genkit/plugin' ;
1918import { CohereClient } from 'cohere-ai' ;
2019
2120import {
2221 cohereEmbedder ,
2322 SUPPORTED_EMBEDDING_MODELS ,
24- embedMultilingual4 ,
2523} from './embedder' ;
2624import { commandModel , SUPPORTED_COMMAND_MODELS } from './command' ;
2725
Original file line number Diff line number Diff line change 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 ' ;
2020import * as z from 'zod' ;
2121
2222interface Params < EmbedderCustomOptions extends z . ZodTypeAny > {
@@ -28,12 +28,12 @@ interface Params<EmbedderCustomOptions extends z.ZodTypeAny> {
2828export 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
You can’t perform that action at this time.
0 commit comments