gpt-fn


Namegpt-fn JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-05-17 01:45:33
maintainerNone
docs_urlNone
authorlucemia
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.
            # GPT-Fn

[![CI](https://github.com/livingbio/gpt-fn/workflows/python-unittest/badge.svg?branch=main)](https://github.com/livingbio/gpt-fn/actions?query=workflow%3Apython-unittest++branch%3Amain++)
[![Coverage Status](https://coveralls.io/repos/github/livingbio/gpt-fn/badge.svg?branch=main)](https://coveralls.io/github/livingbio/gpt-fn?branch=main)
[![pypi](https://img.shields.io/pypi/v/gpt-fn.svg)](https://pypi.python.org/pypi/gpt-fn)
[![downloads](https://pepy.tech/badge/gpt-fn/month)](https://pepy.tech/project/gpt-fn)
[![versions](https://img.shields.io/pypi/pyversions/gpt-fn.svg)](https://github.com/livingbio/gpt-fn)
[![license](https://img.shields.io/github/license/livingbio/gpt-fn.svg)](https://github.com/livingbio/gpt-fn/blob/main/LICENSE)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)


GPT-Fn is a lightweight utility library designed to seamlessly integrate AI capabilities into your software applications. Our focus is on providing essential utilities that make it easy to incorporate artificial intelligence into your codebase without unnecessary complexities.

## Features

- **Function-like API**: With GPT-Fn, you can utilize AI capabilities in your code just like any other function. No need to learn complex AI frameworks or APIs; simply call our functions and harness the power of AI effortlessly.

- **AI Integration**: GPT-Fn seamlessly integrates state-of-the-art AI models, allowing you to perform tasks such as natural language processing, image recognition, sentiment analysis, and much more.

- **Flexible Configuration**: We provide a range of configurable options to fine-tune the behavior of AI functions according to your specific requirements. Customize the models, parameters, and output formats to suit your application's needs.

- **Well Tested**: GPT-Fn comes with a comprehensive suite of test cases, ensuring the reliability and stability of the library. We strive to provide a robust solution that you can trust in your production environments.

- **Open-Source**: GPT-Fn is an open-source project, enabling collaboration and contribution from the developer community. Feel free to explore the source code, suggest improvements, and contribute to making GPT-Fn even more powerful.

## Installation

You can install GPT-Fn using pip, the Python package manager:

```bash
pip install gpt-fn
```

## Getting Started

To start using GPT-Fn in your project, import the library and call the desired function:

```python
from gpt_fn.completion import chat_completion

generated_text = chat_completion(
    [
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello, who are you?"},
    ],
)

print(generated_text)
```

In the example above, we use the `chat_completion` function to generate response by AI. `chat_completion` also raises error on incomplete responses. The implementation of `chat_completion` makes the most common use case easy. You can explore other available functions in the GPT-Fn documentation/[tests](src/gpt_fn/tests/) for a wide range of AI tasks.

## Contributing

We welcome contributions from the developer community to help improve GPT-Fn. If you encounter any issues, have ideas for new features, or would like to contribute code, please check out our [contribution guidelines](CONTRIBUTING.md). We appreciate your support!

## License

GPT-Fn is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute it in your projects. Refer to the license file for more information.

## Acknowledgements

We would like to thank the open-source community for their valuable contributions and the creators of the underlying AI models that power GPT-Fn.

## Contact

If you have any questions, suggestions, or feedback, please don't hesitate to opena an issue.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gpt-fn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "lucemia",
    "author_email": "lucemia@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2f/11/8b27e98c097003820bf0dd723579419afe5592110726d4e8df725cd2a85c/gpt_fn-0.1.5.tar.gz",
    "platform": null,
    "description": "# GPT-Fn\n\n[![CI](https://github.com/livingbio/gpt-fn/workflows/python-unittest/badge.svg?branch=main)](https://github.com/livingbio/gpt-fn/actions?query=workflow%3Apython-unittest++branch%3Amain++)\n[![Coverage Status](https://coveralls.io/repos/github/livingbio/gpt-fn/badge.svg?branch=main)](https://coveralls.io/github/livingbio/gpt-fn?branch=main)\n[![pypi](https://img.shields.io/pypi/v/gpt-fn.svg)](https://pypi.python.org/pypi/gpt-fn)\n[![downloads](https://pepy.tech/badge/gpt-fn/month)](https://pepy.tech/project/gpt-fn)\n[![versions](https://img.shields.io/pypi/pyversions/gpt-fn.svg)](https://github.com/livingbio/gpt-fn)\n[![license](https://img.shields.io/github/license/livingbio/gpt-fn.svg)](https://github.com/livingbio/gpt-fn/blob/main/LICENSE)\n[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n\n\nGPT-Fn is a lightweight utility library designed to seamlessly integrate AI capabilities into your software applications. Our focus is on providing essential utilities that make it easy to incorporate artificial intelligence into your codebase without unnecessary complexities.\n\n## Features\n\n- **Function-like API**: With GPT-Fn, you can utilize AI capabilities in your code just like any other function. No need to learn complex AI frameworks or APIs; simply call our functions and harness the power of AI effortlessly.\n\n- **AI Integration**: GPT-Fn seamlessly integrates state-of-the-art AI models, allowing you to perform tasks such as natural language processing, image recognition, sentiment analysis, and much more.\n\n- **Flexible Configuration**: We provide a range of configurable options to fine-tune the behavior of AI functions according to your specific requirements. Customize the models, parameters, and output formats to suit your application's needs.\n\n- **Well Tested**: GPT-Fn comes with a comprehensive suite of test cases, ensuring the reliability and stability of the library. We strive to provide a robust solution that you can trust in your production environments.\n\n- **Open-Source**: GPT-Fn is an open-source project, enabling collaboration and contribution from the developer community. Feel free to explore the source code, suggest improvements, and contribute to making GPT-Fn even more powerful.\n\n## Installation\n\nYou can install GPT-Fn using pip, the Python package manager:\n\n```bash\npip install gpt-fn\n```\n\n## Getting Started\n\nTo start using GPT-Fn in your project, import the library and call the desired function:\n\n```python\nfrom gpt_fn.completion import chat_completion\n\ngenerated_text = chat_completion(\n    [\n        {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n        {\"role\": \"user\", \"content\": \"Hello, who are you?\"},\n    ],\n)\n\nprint(generated_text)\n```\n\nIn the example above, we use the `chat_completion` function to generate response by AI. `chat_completion` also raises error on incomplete responses. The implementation of `chat_completion` makes the most common use case easy. You can explore other available functions in the GPT-Fn documentation/[tests](src/gpt_fn/tests/) for a wide range of AI tasks.\n\n## Contributing\n\nWe welcome contributions from the developer community to help improve GPT-Fn. If you encounter any issues, have ideas for new features, or would like to contribute code, please check out our [contribution guidelines](CONTRIBUTING.md). We appreciate your support!\n\n## License\n\nGPT-Fn is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute it in your projects. Refer to the license file for more information.\n\n## Acknowledgements\n\nWe would like to thank the open-source community for their valuable contributions and the creators of the underlying AI models that power GPT-Fn.\n\n## Contact\n\nIf you have any questions, suggestions, or feedback, please don't hesitate to opena an issue.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.1.5",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23fc041728cda8ac623902459b0639eb44f7c1b3df2659f3b10e43c38d074f01",
                "md5": "09f6461e1f1e01cb92638af9c7afda4e",
                "sha256": "059cb4b26c3d98a74aff0279da1c2f7bb1e66daff8240430aed7a019a2f3309a"
            },
            "downloads": -1,
            "filename": "gpt_fn-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09f6461e1f1e01cb92638af9c7afda4e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 97672,
            "upload_time": "2024-05-17T01:45:31",
            "upload_time_iso_8601": "2024-05-17T01:45:31.643406Z",
            "url": "https://files.pythonhosted.org/packages/23/fc/041728cda8ac623902459b0639eb44f7c1b3df2659f3b10e43c38d074f01/gpt_fn-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f118b27e98c097003820bf0dd723579419afe5592110726d4e8df725cd2a85c",
                "md5": "db42293fc09bc5199bbce6ea5da3e548",
                "sha256": "f7cffd16d88b2b8e25c35bb07e51518187a5065551347544a03cd0ec541ae444"
            },
            "downloads": -1,
            "filename": "gpt_fn-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "db42293fc09bc5199bbce6ea5da3e548",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 48340,
            "upload_time": "2024-05-17T01:45:33",
            "upload_time_iso_8601": "2024-05-17T01:45:33.695671Z",
            "url": "https://files.pythonhosted.org/packages/2f/11/8b27e98c097003820bf0dd723579419afe5592110726d4e8df725cd2a85c/gpt_fn-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-17 01:45:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gpt-fn"
}
        
Elapsed time: 1.42350s