Skip to content

createCrawlOpenAI

Create an AI application instance by calling createCrawlOpenAI.

type

createCrawlOpenAI API is a function.

ts
function createCrawlOpenAI(config?: createCrawlOpenAIConfig): crawlOpenAIApp

Parameter Type:

Return value type:

Example

js
import { createCrawlOpenAI } from 'x-crawl'

// crawlOpenAIApp API
const crawlOpenAIApp = createCrawlOpenAI({
  clientOptions: { apiKey: 'Your API Key' },
  defaultModel: { chatModel: 'gpt-4-turbo-preview' }
})

Released under the MIT license