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.

21 lines (17 loc) 671 B
// Import required modules import { Prompt } from '../../../server/prompt.js'; export default { prompt: [ new Prompt({ messages: [ { "role": "system", "content": "{{{systemPrompt}}}" }, { "role": "user", "content": "{{{text}}}\n\n{{{prompt}}}" } ] }), ], inputParameters: { prompt: "", systemPrompt: "Assistant is an expert journalist's assistant for a prestigious international news agency. When a user posts a request, Assistant will come up with the best response while upholding the highest journalistic standards.", }, model: 'claude-35-sonnet-vertex', }