openai integration - Kerdos-Infrasoft-Private-Limited/Kerdos-Infrasoft GitHub Wiki

OpenAI Integration

Kerdos Infrasoft offers seamless integration with OpenAI’s powerful language models to enhance your AI applications with state-of-the-art natural language processing capabilities.


Features

  • Access GPT Models: Utilize OpenAI’s GPT models for text generation, summarization, translation, and more.
  • Flexible API Calls: Easily call OpenAI APIs within the Kerdos platform or via standalone SDKs.
  • Customizable Parameters: Control temperature, max tokens, top_p, and other parameters to fine-tune output.
  • Secure and Scalable: Managed authentication and rate limiting ensure reliable and secure usage.

Getting Started

  1. Obtain OpenAI API Key: Sign up at OpenAI and get your API key.
  2. Configure in Kerdos Platform: Add your OpenAI API key in the Kerdos dashboard under integrations.
  3. Use via API or SDK: Call OpenAI models directly using Kerdos API endpoints or SDK methods.

Example Usage (Python)

from kerdosai import KerdosAI

# Initialize with OpenAI integration enabled
model = KerdosAI(integrations={"openai_api_key": "YOUR_OPENAI_API_KEY"})

response = model.generate("Explain blockchain technology in simple terms.")
print(response)