aixnet-beta


Nameaixnet-beta JSON
Version 0.2.5 PyPI version JSON
download
home_pageNone
SummaryThe official package of AI-X-Net.
upload_time2024-09-06 22:41:07
maintainerNone
docs_urlNone
authorYiqiao Yin
requires_python<4.0,>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AIXNet Beta

## Overview

AIXNet Beta is a powerful and user-friendly Python package designed to streamline interactions with the OpenAI and Together AI APIs. By offering an intuitive interface, AIXNet allows developers to quickly integrate advanced AI models like OpenAI's GPT and Meta LLaMA into their applications. Whether you're building conversational agents, automated assistants, or just experimenting with AI-driven solutions, AIXNet simplifies the process by requiring only your API key and a well-structured payload to get started. 

AIXNet Beta is particularly useful for developers looking to work with cutting-edge AI models without the complexity of directly interfacing with APIs. With support for various models and interactive chat sessions, it's a great solution for anyone seeking to integrate AI seamlessly into their workflows.

## Installation

To install the package, use:

```bash
pip install aixnet-beta
```

This will install the latest version of the AIXNet Beta package, making it easy to start using the features immediately.

## Usage

Here's a sample usage to demonstrate how easy it is to get started with AIXNet Beta:

```python
# Import
from aixnet_beta.fm import AzureFM

# Initialize the AzureFM object
azure_fm = AzureFM(
    model="meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
    api_key="REQUEST_FOR_API_KEY",
    protocol="You are a helpful assistant.")

# Start chat
azure_fm.start_chat()
```

With the `start_chat` method, AIXNet allows for a smooth and interactive chat session, where users can engage directly with AI models in a conversational format. The AI model listens to user prompts and responds accordingly. Here’s an example of how the chat session might unfold:

```
🤖 Start chatting with us! Enter 'EXIT' to quit. 🛑
🧑 Human: tell me a joke
🤖 Bot: A man walked into a library and asked the librarian, "Do you have any books on Pavlov's dogs and Schrödinger's cat?"

The librarian replied, "It rings a bell, but I'm not sure if it's here or not."
🧑 Human: EXIT
🙌 Thank you for using the chatbot! Have a great day! 🌟
```

### Additional Features

AIXNet Beta comes with a number of helpful features for working with AI models. Here are a few of them:

#### List Models

You can easily list all available models using the `list_models()` method. This is helpful for developers who need to quickly see what models are supported and choose the best one for their use case.

```python
# List models
azure_fm.list_models()
```

Expected output:

```
Available models: ['gpt-3.5-turbo', 'meta-llama/Llama-3-8b-chat-hf', 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo']
```

#### Managing Conversation History

The AIXNet Beta package also allows for managing conversation history, enabling developers to track the interactions between the user and the model. You can clear, view, or add messages to the history for better control and customization.

### Example:

```python
# Add a message to the conversation history
azure_fm.add_message(role="user", content="What is AI?")
```

This feature can be useful in scenarios where conversation context needs to be preserved or reviewed.

### Error Handling

The `invoke_api` method has built-in error handling that ensures your application won't crash even if something goes wrong during the API request. AIXNet Beta is designed to gracefully manage exceptions and provide informative error messages to help developers quickly debug and resolve issues.

### Benefits

- **Simplicity**: AIXNet Beta abstracts away the complexities of API requests and payload construction, letting developers focus on building the actual functionality of their applications.
- **Flexibility**: Supports multiple AI models, allowing you to experiment with different configurations for various use cases.
- **Interactive Chat**: Provides an easy way to start AI-powered conversations, perfect for building chatbots, virtual assistants, or interactive tools.
- **Error-Resilient**: With built-in error handling, your application stays robust even when unexpected issues arise.

### License

This project is licensed under the MIT License, making it free and open to modification and redistribution. You can freely use it in your own projects, including commercial applications, with minimal restrictions.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aixnet-beta",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Yiqiao Yin",
    "author_email": "eagle0504@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9a/f3/0ba3b1c1afdf1acb10f5fb87e490d413c418b6ee9ca47f52babbb6a3def9/aixnet_beta-0.2.5.tar.gz",
    "platform": null,
    "description": "# AIXNet Beta\n\n## Overview\n\nAIXNet Beta is a powerful and user-friendly Python package designed to streamline interactions with the OpenAI and Together AI APIs. By offering an intuitive interface, AIXNet allows developers to quickly integrate advanced AI models like OpenAI's GPT and Meta LLaMA into their applications. Whether you're building conversational agents, automated assistants, or just experimenting with AI-driven solutions, AIXNet simplifies the process by requiring only your API key and a well-structured payload to get started. \n\nAIXNet Beta is particularly useful for developers looking to work with cutting-edge AI models without the complexity of directly interfacing with APIs. With support for various models and interactive chat sessions, it's a great solution for anyone seeking to integrate AI seamlessly into their workflows.\n\n## Installation\n\nTo install the package, use:\n\n```bash\npip install aixnet-beta\n```\n\nThis will install the latest version of the AIXNet Beta package, making it easy to start using the features immediately.\n\n## Usage\n\nHere's a sample usage to demonstrate how easy it is to get started with AIXNet Beta:\n\n```python\n# Import\nfrom aixnet_beta.fm import AzureFM\n\n# Initialize the AzureFM object\nazure_fm = AzureFM(\n    model=\"meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo\",\n    api_key=\"REQUEST_FOR_API_KEY\",\n    protocol=\"You are a helpful assistant.\")\n\n# Start chat\nazure_fm.start_chat()\n```\n\nWith the `start_chat` method, AIXNet allows for a smooth and interactive chat session, where users can engage directly with AI models in a conversational format. The AI model listens to user prompts and responds accordingly. Here\u2019s an example of how the chat session might unfold:\n\n```\n\ud83e\udd16 Start chatting with us! Enter 'EXIT' to quit. \ud83d\uded1\n\ud83e\uddd1 Human: tell me a joke\n\ud83e\udd16 Bot: A man walked into a library and asked the librarian, \"Do you have any books on Pavlov's dogs and Schr\u00f6dinger's cat?\"\n\nThe librarian replied, \"It rings a bell, but I'm not sure if it's here or not.\"\n\ud83e\uddd1 Human: EXIT\n\ud83d\ude4c Thank you for using the chatbot! Have a great day! \ud83c\udf1f\n```\n\n### Additional Features\n\nAIXNet Beta comes with a number of helpful features for working with AI models. Here are a few of them:\n\n#### List Models\n\nYou can easily list all available models using the `list_models()` method. This is helpful for developers who need to quickly see what models are supported and choose the best one for their use case.\n\n```python\n# List models\nazure_fm.list_models()\n```\n\nExpected output:\n\n```\nAvailable models: ['gpt-3.5-turbo', 'meta-llama/Llama-3-8b-chat-hf', 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo']\n```\n\n#### Managing Conversation History\n\nThe AIXNet Beta package also allows for managing conversation history, enabling developers to track the interactions between the user and the model. You can clear, view, or add messages to the history for better control and customization.\n\n### Example:\n\n```python\n# Add a message to the conversation history\nazure_fm.add_message(role=\"user\", content=\"What is AI?\")\n```\n\nThis feature can be useful in scenarios where conversation context needs to be preserved or reviewed.\n\n### Error Handling\n\nThe `invoke_api` method has built-in error handling that ensures your application won't crash even if something goes wrong during the API request. AIXNet Beta is designed to gracefully manage exceptions and provide informative error messages to help developers quickly debug and resolve issues.\n\n### Benefits\n\n- **Simplicity**: AIXNet Beta abstracts away the complexities of API requests and payload construction, letting developers focus on building the actual functionality of their applications.\n- **Flexibility**: Supports multiple AI models, allowing you to experiment with different configurations for various use cases.\n- **Interactive Chat**: Provides an easy way to start AI-powered conversations, perfect for building chatbots, virtual assistants, or interactive tools.\n- **Error-Resilient**: With built-in error handling, your application stays robust even when unexpected issues arise.\n\n### License\n\nThis project is licensed under the MIT License, making it free and open to modification and redistribution. You can freely use it in your own projects, including commercial applications, with minimal restrictions.",
    "bugtrack_url": null,
    "license": null,
    "summary": "The official package of AI-X-Net.",
    "version": "0.2.5",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ba82ed77cd29871d7d4c0c823b4aeeeb44d35b873c6281b8f719a5e85f02290",
                "md5": "0b281d9d76a6dad57639aeefcd1b108f",
                "sha256": "3b78834f9f9ea8a8167f28cb6b3433b5cfbf1058461c27cba0825f5fc46d4770"
            },
            "downloads": -1,
            "filename": "aixnet_beta-0.2.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0b281d9d76a6dad57639aeefcd1b108f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 7137,
            "upload_time": "2024-09-06T22:41:06",
            "upload_time_iso_8601": "2024-09-06T22:41:06.373040Z",
            "url": "https://files.pythonhosted.org/packages/2b/a8/2ed77cd29871d7d4c0c823b4aeeeb44d35b873c6281b8f719a5e85f02290/aixnet_beta-0.2.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9af30ba3b1c1afdf1acb10f5fb87e490d413c418b6ee9ca47f52babbb6a3def9",
                "md5": "8ec99f0d5c27e9755c3783f6630f121a",
                "sha256": "dae43a6ac9069cff90c8ce2aa55fc5bc93901648a106aaf674bc6ab55e64fbd2"
            },
            "downloads": -1,
            "filename": "aixnet_beta-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "8ec99f0d5c27e9755c3783f6630f121a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 5380,
            "upload_time": "2024-09-06T22:41:07",
            "upload_time_iso_8601": "2024-09-06T22:41:07.932594Z",
            "url": "https://files.pythonhosted.org/packages/9a/f3/0ba3b1c1afdf1acb10f5fb87e490d413c418b6ee9ca47f52babbb6a3def9/aixnet_beta-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-06 22:41:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aixnet-beta"
}
        
Elapsed time: 0.31298s