Metadata-Version: 2.1
Name: sdk-openapi
Version: 0.0.8
Summary: The python package for api.qewertyy.me
Home-page: https://github.com/Qewertyy/Open-API
Author: Qewertyy
Author-email: Qewertyy.irl@gmail.com
Keywords: Python,API,Bard,Google Bard,Large Language Model,Chatbot API,Google API,Chatbot,Image Generations,Latent Diffusion,State of Art
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown

Available Models

```python
from openapi import Client

def main() -> dict:
    client = Client()
    response = client.getModels()
    return response

if __name__ == "__main__":
    print(main())
```
output
```json
{
    text: [
      { id: 0, name: "models/text-bison-001" },
    ],
    chat: [
      { id: 1, name: "models/chat-bison-001" },
    ],
    image: [
      { id: 2, name: "MeinaMix" },
      { id: 3, name: "AnyLora" },
      { id: 4, name: "AnyThingV4" }
    ]
  }
```

Usage for palm

```python
from openapi import Client

def main(prompt: str) -> dict:
    client = Client()
    response = client.palm(prompt)
    return response

if __name__ == "__main__":
    print(main("hello world"))
```

Usage for upscaling an image.

```python
from openapi import Client

def main(image: bytes) -> bytes:
    client = Client()
    imageBytes = client.upscale(image)
    with open('upscaled.png', 'wb') as f:
        f.write(imageBytes)

if __name__ == "__main__":
    image = open('examples/images/image.png', 'rb').read()
    main(image)
```
