Judini python package
Project description
Judini Python Package
This package provides you with an easy way to interact with the Judini API in your Python applications.
Install
To install the package, simply run the following command:
pip install judini
Usege
Below is a sample code demonstrating how to use the Judini package in your Python application:
# Import the package
import asyncio
from judini.agent import Agent
def main():
# Replace with your actual API key and URL ID
api_key = "your_api_key_here"
agent_id = "your_agent_id_here"
# Initialize the Judini class
agent_instance = Agent(api_key, agent_id)
# Optional: update API key or URL ID if needed
agent_instance.set_api_key("new_api_key")
agent_instance.set_agent_id("new_agent_id")
# Create the prompt
prompt = 'Escribeme un parrafo de un cuento sobre una tortuga azul'
# Make a completion request
response = asyncio.run(agent_instance.completion(prompt, stream=False))
# Handle the response as needed
print(response)
if __name__ == "__main__":
main()
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
judini-dev-0.0.10.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for judini_dev-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34cef2485d1283c166e9f943ffc0bda5a5d43863b3c9259d2027a4908a9149a |
|
MD5 | 5b7dddb4766f6a4d968942b5099f1700 |
|
BLAKE2b-256 | ccfc7affa977c9d05302ff6b377e9673d6fc3695c8db395f22cfd8c1844f0630 |