Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fri-end committed Apr 2, 2024
1 parent bda4f89 commit c615832
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pip install unifyai
## Basic Usage
```python
import os
from unify import Unify
from unifyai import Unify
unify = Unify(
# This is the default and optional to include.
api_key=os.environ.get("UNIFY_KEY")
Expand Down Expand Up @@ -70,7 +70,7 @@ To use the AsyncUnify client, simply import `AsyncUnify` instead
of `Unify` and use `await` with the `.generate` function.

```python
from unify import AsyncUnify
from unifyai import AsyncUnify
import os
import asyncio
async_unify = AsyncUnify(
Expand All @@ -91,7 +91,7 @@ You can enable streaming responses by setting `stream=True` in the `.generate` f

```python
import os
from unify import Unify
from unifyai import Unify
unify = Unify(
# This is the default and optional to include.
api_key=os.environ.get("UNIFY_KEY")
Expand All @@ -104,7 +104,7 @@ for chunk in stream:
It works in exactly the same way with Async clients.

```python
from unify import AsyncUnify
from unifyai import AsyncUnify
import os
import asyncio
async_unify = AsyncUnify(
Expand All @@ -125,7 +125,7 @@ As evidenced by our [benchmarks](https://unify.ai/hub), the optimal provider for

```python
import os
from unify import Unify
from unifyai import Unify
unify = Unify(
# This is the default and optional to include.
api_key=os.environ.get("UNIFY_KEY")
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
[tool.poetry]
name = "unifyai"
version = "0.0.0"
version = "0.2.0"
readme = "README.md"
description = "A Python package for interacting with the Unify API"
authors = ["Unify <hello@unify.com>"]
repository = "https://github.com/unifyai/unify-llm-python"

[tool.poetry.plugins."version-from-file"]
module = "unifyai.version"
attribute = "__version__"

[tool.poetry.dependencies]
python = "^3.9"
openai = "^1.12.0"
Expand Down
2 changes: 0 additions & 2 deletions unifyai/_version.py

This file was deleted.

0 comments on commit c615832

Please sign in to comment.