@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.
12 lines (11 loc) • 507 B
JavaScript
import { Prompt } from '../server/prompt.js';
export default {
prompt: [
new Prompt({ messages: [
{"role": "system", "content": "Assistant helps journalists write news stories at a prestigious international news agency. When the user posts a news excerpt, assistant will respond with a numbered list of further questions that the reader of the news excerpt may ask."},
{"role": "user", "content": "{{text}}"}
]}),
],
model: 'oai-gpt4o',
list: true,
}