Metadata-Version: 2.1
Name: cerebrate-sdk
Version: 0.1.4
Summary: Cerebrate SDK
Author: Cerebrate AI
Author-email: admin@cerebrate.ai
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: requests
Description-Content-Type: text/markdown

# Cerebrate SDK

## Install
### with poetry
```shell
poetry add cerebrate-sdk
```

### or with pip
```shell
pip install cerebrate-sdk
```

## Examples
### Fake email detector
```python
from cerebrate_sdk import Cerebrate

c = Cerebrate('YOUR_API_KEY')

task = "Detect if email is fake or real"
examples = [
    "qwertyuiooiu@ihdj.com: fake"
    "support@cerebrate.ai: real",
]

result = c.predict(task, examples, "lajotig138@5k2u.com: ")

print(result[0])
# fake

```

### With options
```python
from cerebrate_sdk import Cerebrate, Options

c = Cerebrate('YOUR_API_KEY')

options = Options(
    stop=['Q:'],
    temperature=0.7,
    max_tokens=100,
    top_p=1,
    presence_penalty=0,
    frequency_penalty=0,
    best_of=1
)

task = "Detect if email is fake or real"
examples = [
    "qwertyuiooiu@ihdj.com: fake"
    "support@cerebrate.ai: real",
]

result = c.predict(task, examples, "lajotig138@5k2u.com: ", options=options)

print(result[0])
# fake

```

### Raw usage
```python
from cerebrate_sdk import Cerebrate

c = Cerebrate("YOUR_API_KEY")

result = c.raw("Suggest the next item for user's cart."
               "Cart: bacon, eggs, tomatoes"
               "Suggested item: ")
print(result[0])
# sausage

```
