Skip to main content

No project description provided

Project description

GPT-Fn

CI Coverage Status pypi downloads versions license Checked with mypy Code style: black Imports: 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:

pip install gpt-fn

Getting Started

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

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 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. We appreciate your support!

License

GPT-Fn is licensed under the MIT 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.

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

gpt_fn-0.0.19.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

gpt_fn-0.0.19-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

Details for the file gpt_fn-0.0.19.tar.gz.

File metadata

  • Download URL: gpt_fn-0.0.19.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gpt_fn-0.0.19.tar.gz
Algorithm Hash digest
SHA256 bd65b0cae3839b46f3c4a0a55cad1ba54f544739112252d656830a5f62fd9af4
MD5 609ef630fb3eb6dad16b7f4687a99e68
BLAKE2b-256 d4dbdcbf754668c4586b846f3cfdf4ad7d9e31fa988b2b3c9c598f9b2324d61c

See more details on using hashes here.

File details

Details for the file gpt_fn-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: gpt_fn-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 52.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gpt_fn-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 282e9feadafa71cf9699b7f343e2e9ca1ae16a4b81c80cf67e6e4137250cb6b1
MD5 8d7d4211b5f12a174f82321315f88a89
BLAKE2b-256 60121ff617253d867cf0a5934d10e4dbb912812e5258e428f7e88317d5337d23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page