NeuraNET Python API library
Project description
🌐 NeuraNET Python API library
The Official NeuraNET Python Library
🛠 Installation
To get started with the library, simply run the following command:
pip install neuranet
💬 Chat Usage
Using the Chat AIs library is straightforward. Below is an example of a conversation:
import neuranet
api_key = "YOUR_API_KEY_HERE"
mode = 'chat'
client = neuranet.client(api_key, mode)
# Set up the conversation history and model
conversation_history = [
{"sender": "instruct", "content": "You are a helpful assistant."},
{"sender": "user", "content": "Hello."},
{"sender": "assistant", "content": "Hello, how can I assist you?"},
{"sender": "user", "content": "How are you?"}
]
model = "nlite" # options: nlite, npro, npro-vision
# Get the response
try:
response = client.generate(conversation_history, model)
print(response)
except Exception as e:
print(f"An error occurred: {e}")
🎨 Image Usage
Using the Image generation AIs library is straightforward. Below is an example of a conversation:
import neuranet
api_key = "YOUR_API_KEY_HERE"
mode = 'image'
client = neuranet.client(api_key, mode)
model = "vinci-mini" # options: vinci-mini, vinci-max
prompt = "A large oak tree"
response = client.generate(prompt, model)
print(response)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuranet-0.0.1.tar.gz.
File metadata
- Download URL: neuranet-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29337b5e753377cd13b2d6ec867b1d4ed8e9cac06a6f7eea6c4775915ecbe654
|
|
| MD5 |
e39ad3d69fd318ced75af7b0dd5e560d
|
|
| BLAKE2b-256 |
d54a5b9cbd46e3b033042339ad1140056a15a301bd81f10f7f66938e6746ed77
|
File details
Details for the file neuranet-0.0.1-py3-none-any.whl.
File metadata
- Download URL: neuranet-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da73897402d5ea1720c406ce8cd43aa9f2576af5b72af15097399d7891ac415b
|
|
| MD5 |
e7deb3a0043b4f81c36c86f76b926491
|
|
| BLAKE2b-256 |
46dc6794f44aa2156ec73a43fbd9cb8ca5b775883a26d7f4354636071559a9ab
|