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",
"baseModel": "PaLM"
}
],
"chat": [
{
"id": 1,
"name": "models/chat-bison-001",
"baseModel": "PaLM"
},
{
"id": 5,
"name": "gpt-3.5-turbo",
"baseModel": "GPT"
}
],
"image": [
{
"id": 2,
"name": "MeinaMix",
"baseModel": "SD"
},
{
"id": 3,
"name": "AnyLora",
"baseModel": "SD"
},
{
"id": 4,
"name": "AnyThingV4",
"baseModel": "SD"
},
{
"id": 6,
"name": "Bing",
"baseModel": "Dall-E"
}
]
}
```
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"))
```
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Qewertyy/Open-API",
"name": "sdk-openapi",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "Python,API,Bard,Google Bard,Large Language Model,Chatbot API,Google API,Chatbot,Image Generations,Latent Diffusion,State of Art",
"author": "Qewertyy",
"author_email": "Qewertyy.irl@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e1/6d/505fbf8c80a1390681ad0f65836e80d889741e26d7f67c0555b6397c40ec/sdk-openapi-1.2.0.tar.gz",
"platform": null,
"description": "Available Models\n```python\nfrom openapi import Client\n\ndef main() -> dict:\n client = Client()\n response = client.getModels()\n return response\n\nif __name__ == \"__main__\":\n print(main())\n```\n\noutput\n\n```json\n{\n \"text\": [\n {\n \"id\": 0,\n \"name\": \"models/text-bison-001\",\n \"baseModel\": \"PaLM\"\n }\n ],\n \"chat\": [\n {\n \"id\": 1,\n \"name\": \"models/chat-bison-001\",\n \"baseModel\": \"PaLM\"\n },\n {\n \"id\": 5,\n \"name\": \"gpt-3.5-turbo\",\n \"baseModel\": \"GPT\"\n }\n ],\n \"image\": [\n {\n \"id\": 2,\n \"name\": \"MeinaMix\",\n \"baseModel\": \"SD\"\n },\n {\n \"id\": 3,\n \"name\": \"AnyLora\",\n \"baseModel\": \"SD\"\n },\n {\n \"id\": 4,\n \"name\": \"AnyThingV4\",\n \"baseModel\": \"SD\"\n },\n {\n \"id\": 6,\n \"name\": \"Bing\",\n \"baseModel\": \"Dall-E\"\n }\n ]\n}\n```\n\npalm\n\n```python\nfrom openapi import Client\n\ndef main(prompt: str) -> dict:\n client = Client()\n response = client.palm(prompt)\n return response\n\nif __name__ == \"__main__\":\n print(main(\"hello world\"))\n```\n\nupscaling an image.\n\n```python\nfrom openapi import Client\n\ndef main(image: bytes) -> bytes:\n client = Client()\n imageBytes = client.upscale(image)\n with open('upscaled.png', 'wb') as f:\n f.write(imageBytes)\n\nif __name__ == \"__main__\":\n image = open('examples/images/image.png', 'rb').read()\n main(image)\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "The python package for api.qewertyy.me",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/Qewertyy/Open-API"
},
"split_keywords": [
"python",
"api",
"bard",
"google bard",
"large language model",
"chatbot api",
"google api",
"chatbot",
"image generations",
"latent diffusion",
"state of art"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e16d505fbf8c80a1390681ad0f65836e80d889741e26d7f67c0555b6397c40ec",
"md5": "8dcf1594b4dae9a8e0cfb388ac56d98b",
"sha256": "84803a4219822f801e42bc3653072dcd9f8208f08568ca6e26b6c006ebf24e22"
},
"downloads": -1,
"filename": "sdk-openapi-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "8dcf1594b4dae9a8e0cfb388ac56d98b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3352,
"upload_time": "2023-08-13T16:26:02",
"upload_time_iso_8601": "2023-08-13T16:26:02.787176Z",
"url": "https://files.pythonhosted.org/packages/e1/6d/505fbf8c80a1390681ad0f65836e80d889741e26d7f67c0555b6397c40ec/sdk-openapi-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-13 16:26:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Qewertyy",
"github_project": "Open-API",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sdk-openapi"
}