Installation¶
Requirements¶
- Python 3.12 or higher
- An OpenAI API key (or compatible LLM endpoint)
Install from PyPI¶
Install from Source¶
Configuration¶
OpenAI API Key¶
Set your OpenAI API key as an environment variable:
Custom LLM Endpoint¶
You can use any OpenAI-compatible endpoint:
from vibe_aigc import MetaPlanner
from vibe_aigc.llm import LLMConfig
config = LLMConfig(
api_key="your-api-key",
base_url="https://your-endpoint.com/v1",
model="your-model-name"
)
planner = MetaPlanner(llm_config=config)
Verify Installation¶
from vibe_aigc import Vibe, MetaPlanner
print("Vibe AIGC installed successfully!")
# Create a test vibe
vibe = Vibe(description="Test vibe")
print(f"Created vibe: {vibe.description}")
Development Setup¶
For contributing or development: