29 lines
728 B
TypeScript
29 lines
728 B
TypeScript
import { IntegrationDefinition, z } from '@botpress/sdk'
|
|
import { ModelId } from 'src/schemas'
|
|
import llm from './bp_modules/llm'
|
|
|
|
export default new IntegrationDefinition({
|
|
name: 'google-ai',
|
|
title: 'Google AI',
|
|
description: 'Gain access to Gemini models for content generation, chat responses, and advanced language tasks.',
|
|
version: '8.0.0',
|
|
readme: 'hub.md',
|
|
icon: 'icon.svg',
|
|
entities: {
|
|
modelRef: {
|
|
schema: z.object({
|
|
id: ModelId,
|
|
}),
|
|
},
|
|
},
|
|
secrets: {
|
|
GOOGLE_AI_API_KEY: {
|
|
description: 'Google AI API key',
|
|
},
|
|
},
|
|
attributes: {
|
|
category: 'AI Models',
|
|
repo: 'botpress',
|
|
},
|
|
}).extend(llm, ({ entities: { modelRef } }) => ({ entities: { modelRef } }))
|