Skip to main content

Libary for Making Ai

Project description

skai

skai is a simple and easy-to-use AI library for Python.
It allows you to interact with AI models with minimal code.

Installation

You can install skai directly from PyPI:

pip install skai

Make sure you have Python 3.7 or higher installed.

Install Dependencies

skai depends on the openai library. It will be installed automatically with pip.
If needed, you can install it manually:

pip install openai


---

Setup

Before using the library, set your API key and choose a model:


import skai

# Set your API key
skai.setapi("YOUR_API_KEY")

# Set the AI model (examples: "gpt-3.5-turbo", "gpt-4")
skai.setmodel("gpt-4")

---

Usage

Ask AI

# Ask a question
user_input = skai.askai(input("You: "))

Print AI Response

# Display AI response
skai.awnser("bot: ", user_input)


---

Example Script

import skai

skai.setapi("YOUR_API_KEY")
skai.setmodel("gpt-4")

question = skai.askai(input("You: "))
skai.awnser("bot: ", question)

Sample Run:

You: What is the capital of France?
bot: Paris


---

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

askyai-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

askyai-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file askyai-0.1.0.tar.gz.

File metadata

  • Download URL: askyai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for askyai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e11444e0bb726de01b75ffe3d9cca637c50d63317a5459ff10eb54eea5c7142
MD5 fbfbc4007f2472db3fadf3314bf99ea9
BLAKE2b-256 0fa2a3bd74016690af93ac80e7df3ac0e62deef604f447e9cefe2e16560e1d5f

See more details on using hashes here.

File details

Details for the file askyai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: askyai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for askyai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0131beedac3c1f9bf107a4dc07bd3a02962ebb658f07572e75134f3da1e2a096
MD5 17e03230be55c10eaa5cce9d2e22867b
BLAKE2b-256 a9072e2a9abced5ab715d1e32b60baab2abd8604d9d250debbfe8fd7dd245f6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page