0.2.1 • Published 1 year ago

ommy v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ommy

Unofficial provider for working with notion AI

Installation

Using npm:

npm i ommy

Using yarn:

yarn add ommy

Usage

First, you need to copy the cookie value with the key token_v2. This token needs to be passed in the function call.

search

Searching for an answer in your Notion

import { search } from 'ommy/notion';

const answer = await search({
    text: 'the process of caching a request from the service with DNA data',
    token,
});

translate

const answer = await translate({
    text: 'Denken Sie sich einen Namen für eine Variable aus, die für das Zwischenspeichern von Anfragen aus dem Dienst mit DNA-Daten verantwortlich ist',
    language: 'english',
    token,
});

helpMeEdit

Free-form request to Notion AI

import { helpMeEdit } from 'ommy/notion';

const answer = await helpMeEdit({
    prompt: 'Think up a name for a variable responsible for caching requests from the service with DNA data',
    token,
});

License

MIT

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago