UNPKG

@aj-archipelago/cortex

Version:

Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.

23 lines (21 loc) 824 B
// sys_google_gemini_chat.js // override handler for gemini-chat import { Prompt } from '../../../server/prompt.js'; export default { prompt: [ new Prompt({ messages: [ "{{messages}}", ]}), ], inputParameters: { messages: [{role: '', content: []}], }, model: 'gemini-pro-chat', useInputChunking: false, emulateOpenAIChatModel: 'gemini-pro-chat', geminiSafetySettings: [{category: 'HARM_CATEGORY_DANGEROUS_CONTENT', threshold: 'BLOCK_ONLY_HIGH'}, {category: 'HARM_CATEGORY_SEXUALLY_EXPLICIT', threshold: 'BLOCK_ONLY_HIGH'}, {category: 'HARM_CATEGORY_HARASSMENT', threshold: 'BLOCK_ONLY_HIGH'}, {category: 'HARM_CATEGORY_HATE_SPEECH', threshold: 'BLOCK_ONLY_HIGH'}], }