0.2.10 • Published 1 year ago
@nomland/elephant v0.2.10
Elephant
Extract structured data from web pages using the OpenAI API.
Install
npm install @nomland/elephantConfigure environment variables
| Variable | Value |
|---|---|
| OPENAI_MODEL | The OpenAI model name (gpt-3.5-turbo-16k or gpt-4-1106-preview recommended) |
| OPENAI_API_KEY | Your OpenAI API key |
To use an Azure OpenAI endpoint, visit the Typechat documentation.
Usage
Run examples:
npm run startor use elephant in project
import {extract} from @nomland/elephant
await extract('https://test.com/example-page')TODO
Move examples to ./examples Extract IPFS url if existed