|
@@ -46,6 +46,7 @@ LLM Scraper is a TypeScript library that allows you to extract structured data f
|
|
|
|
|
|
```js
|
|
```js
|
|
import { openai } from '@ai-sdk/openai'
|
|
import { openai } from '@ai-sdk/openai'
|
|
|
|
+
|
|
const llm = openai.chat('gpt-4o')
|
|
const llm = openai.chat('gpt-4o')
|
|
```
|
|
```
|
|
|
|
|
|
@@ -81,6 +82,7 @@ LLM Scraper is a TypeScript library that allows you to extract structured data f
|
|
|
|
|
|
```js
|
|
```js
|
|
import { LlamaModel } from 'node-llama-cpp'
|
|
import { LlamaModel } from 'node-llama-cpp'
|
|
|
|
+
|
|
const llm = new LlamaModel({ modelPath: 'model.gguf' })
|
|
const llm = new LlamaModel({ modelPath: 'model.gguf' })
|
|
```
|
|
```
|
|
|
|
|
|
@@ -88,6 +90,7 @@ LLM Scraper is a TypeScript library that allows you to extract structured data f
|
|
|
|
|
|
```js
|
|
```js
|
|
import LLMScraper from 'llm-scraper'
|
|
import LLMScraper from 'llm-scraper'
|
|
|
|
+
|
|
const scraper = new LLMScraper(llm)
|
|
const scraper = new LLMScraper(llm)
|
|
```
|
|
```
|
|
|
|
|