Metadata-Version: 2.1
Name: opengig_openai_wrapper
Version: 0.1.1
Summary: easy to use openai apis
Author: Abhilasha
Author-email: singhabhilasha4042@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: openai (>=1.57.4,<2.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Description-Content-Type: text/markdown

# NextJS Project
    - Add openai-wrapper.ts in lib folder in NextJS Project
    - 

# Examples
# Example usage
if __name__ == "__main__":
    # Initialize the wrapper
    wrapper = SimpleOpenAIWrapper(
        service_provider="openai", 
        max_retries=3
    )

    # Generate a response
    system_prompt = "You are a helpful assistant."
    user_prompt = "Explain the significance of the Pythagorean theorem."
    response = wrapper.generate_response(
        system_prompt=system_prompt, 
        user_prompt=user_prompt, 
        model="gpt-4", 
        max_tokens=150, 
        output_format="str"
    )
    print("Response:", response)
