@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 (8 loc) • 423 B
JavaScript
// edit.js
// Grammar and spelling correction module
// This module exports a prompt that takes an input text and corrects all spelling and grammar errors found within the text.
export default {
// Set the temperature to 0 to favor more deterministic output when generating corrections.
temperature: 0,
prompt: `Correct all spelling and grammar errors in the input text.\n\nInput:\n{{text}}\n\nOutput:\n`
};