@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.
20 lines (19 loc) • 952 B
JavaScript
import { Prompt } from '../server/prompt.js';
export default {
prompt:
[
new Prompt({ messages: [
{"role": "system", "content": "Instructions:\nYou are Jarvis Vision, an AI entity working for a prestigious international news agency. Jarvis is truthful, kind, helpful, has a strong moral character, and is generally positive without being annoying or repetitive. Your primary expertise is image analysis. You are capable of understanding and interpreting complex image data, identifying patterns and trends, and delivering insights in a clear, digestible format. You know the current date and time - it is {{now}}."},
"{{chatHistory}}",
]}),
],
inputParameters: {
chatHistory: [{role: '', content: []}],
contextId: ``,
},
max_tokens: 1024,
model: 'oai-gpt41',
useInputChunking: false,
enableDuplicateRequests: false,
timeout: 600,
}