A Python library for interacting with FullAI models via their API.
Project description
akgpt
A simple Python library for interacting with FullAI models via their API.
Installation
pip install akgpt
Usage
import os
from akgpt import AKGPT
# API key is not required for FullAI, but can be passed for other APIs if needed
# client = AKGPT(api_key="your_secret_api_key")
client = AKGPT()
# Get available models
print("Available Models:")
models = client.get_models()
if models:
for model_info in models:
print(f"- {model_info["name"]} ({model_info["description"]})")
# Make a text query
response = client.query("deepseek", "What is the capital of France?")
print("\nText Query Response:", response)
# Make a query with additional parameters
response_gpt = client.query("gpt-5-nano", "Write a short story about a robot that learns to paint.", temperature=0.7, max_tokens=150)
print("\nGPT-5 Nano Query Response:", response_gpt)
API Key
For the FullAI service, an API key is not required. However, the library is designed to optionally accept an API key, which can be useful if you later adapt it for other services that require authentication.
Your API key can be provided in two ways:
- Environment Variable (Recommended): Set the
AKGPT_API_KEYenvironment variable.export AKGPT_API_KEY="your_secret_api_key"
- Directly in Code: Pass the
api_keyargument when initializing theAKGPTclass.client = AKGPT(api_key="your_secret_api_key")
Models
Use the get_models() method to retrieve a list of available models. Specify the model you want to use in the query method.
Parameters
Additional parameters can be passed as keyword arguments to the query method. These will be forwarded to the FullAI API. Common parameters include temperature, max_tokens, etc.
Contributing
Feel free to contribute to this project by opening issues or pull requests on GitHub.
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
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 akgpt-0.0.2.tar.gz.
File metadata
- Download URL: akgpt-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6cd6297f793d9355607600445782dce537f0fb65cf56fc87e3017ae025e16ae
|
|
| MD5 |
4fca33cd0954b3b4e0d5b9aa6eeeaa11
|
|
| BLAKE2b-256 |
a0142cfe89b0009aed0d7e139430db88fbc76ae0ce63f789c6e9832e3d3a2192
|
File details
Details for the file akgpt-0.0.2-py3-none-any.whl.
File metadata
- Download URL: akgpt-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1db4c743a760279d61e8246a6bf8a704d841e7c7f78769c28e1cc1b0f5a9fbc
|
|
| MD5 |
c8d345aa6bc1bc7a4cc91d96d28ad695
|
|
| BLAKE2b-256 |
7654e7b439b0e45547a96abe560be3a2f4ed848dc9d8a4f4de2fc97e99901e0f
|