Skip to content

Create AI application

Ollama

create a new ** application instance ** with createCrawlOllama():

js
import { createCrawlOllama } from 'x-crawl'

const crawlOllamaApp = createCrawlOllama({
  model: "Your model ",
  clientOptions: { ... }
})

Openai

You need to use the OpenAI API Key.

Create a new application instance via createCrawlOpenAI():

js
import { createCrawlOpenAI } from 'x-crawl'

const crawlOpenAIApp = createCrawlOpenAI({
  clientOptions: { apiKey: 'Your API Key' }
})

Get API Key

Released under the MIT license