Metadata-Version: 2.1
Name: dyphira
Version: 0.1.1
Summary: A Python package for interacting with OpenAI and runpod APIs via Dyphira proxy server.
Author-email: DivinerX <loc_yan@outlook.com>
License: MIT
Project-URL: Homepage, https://github.com/DivinerX/dyphira-python
Project-URL: Issues, https://github.com/DivinerX/dyphira-python/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# 🚀 Dyphira Python

![Dyphira Banner](https://via.placeholder.com/800x200?text=Dyphira+Python)

**Seamlessly access OpenAI's powerful AI capabilities through our optimized proxy service!**

Dyphira Python provides a streamlined, cost-effective way to integrate cutting-edge AI into your applications with minimal setup and maximum performance.

## ✨ Why Choose Dyphira?

- 🔥 **Optimized Performance** - Faster response times through our dedicated proxy
- 💰 **Cost Efficiency** - Reduce your API costs while maintaining quality
- 🛡️ **Enhanced Reliability** - Built-in error handling and retry mechanisms
- 🔌 **Drop-in Compatibility** - Mirrors the OpenAI API for seamless integration

## 📦 Installation

```bash
pip install dyphira
```

## 🚀 Quick Start

```python
from dyphira import OpenAI

# Connect to the Dyphira proxy with your API key
ai = OpenAI(api_key="your-api-key")

# Start creating AI magic!
response = ai.chat_completions(
    model="gpt-4",
    messages=[
        {"role": "system", "content": "You are a brilliant marketing copywriter."},
        {"role": "user", "content": "Write a tagline for a new AI-powered coffee maker."}
    ]
)

print(response["choices"][0]["message"]["content"])
```

## 🛠️ Powerful Features

### 💬 Conversational AI
Create dynamic, context-aware conversations with the most advanced language models.

```python
response = ai.chat_completions(
    model="gpt-3.5-turbo",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What's the capital of France?"},
        {"role": "assistant", "content": "The capital of France is Paris."},
        {"role": "user", "content": "And what's its most famous landmark?"}
    ]
)
```

### 🎨 Image Generation
Transform your ideas into stunning visuals with a simple prompt.

```python
response = ai.images_generations(
    prompt="A futuristic cityscape with flying cars and neon lights",
    model="dall-e-3",
    size="1024x1024",
    quality="hd"
)
```

### 🔊 Audio Processing
Convert speech to text and text to speech with remarkable accuracy.

```python
# Transcribe audio
transcript = ai.audio_transcriptions(
    file="interview.mp3",
    model="whisper-1"
)

# Generate speech
speech = ai.audio_speech(
    model="tts-1",
    input="Welcome to the future of AI integration!",
    voice="alloy"
)
```

### 🧠 Embeddings & Analysis
Extract semantic meaning from text for advanced analysis and search.

```python
embeddings = ai.embeddings(
    model="text-embedding-ada-002",
    input=["Dyphira makes AI integration effortless", "AI solutions for modern applications"]
)
```

## 📊 Enterprise Solutions

Dyphira offers enterprise-grade solutions with:

- 🔒 **Enhanced Security**
- ⚡ **Higher Rate Limits**
- 🌐 **Dedicated Infrastructure**
- 👨‍💼 **Priority Support**

[Contact us](mailto:loc_yan@outlook.com) for enterprise pricing and custom solutions.

## 📚 Documentation

For comprehensive documentation and advanced usage examples, visit our [documentation site](https://github.com/DivinerX/dyphira-python).

## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

<p align="center">
  <b>Powered by Dyphira - Unlocking AI's Potential</b><br>
  <a href="https://github.com/DivinerX/dyphira-python">GitHub</a> •
  <a href="https://github.com/DivinerX/dyphira-python/issues">Report Issues</a>
</p>
