@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.
14 lines (13 loc) • 361 B
JavaScript
// sys_ollama_completion.js
// default handler for ollama completion endpoints when REST endpoints are enabled
export default {
prompt: `{{text}}`,
inputParameters: {
text: '',
ollamaModel: '',
},
model: 'ollama-completion',
useInputChunking: false,
emulateOpenAICompletionModel: 'ollama-completion',
timeout: 300,
}