Install
npx skillscat add vamseeachanta/workspace-hub/prompt-engineering-openai-integration Install via the SkillsCat registry.
SKILL.md
OpenAI Integration (+1)
OpenAI Integration
import openai
def create_openai_caller(model: str = "gpt-4", temperature: float = 0.7):
"""Create OpenAI API caller."""
client = openai.OpenAI()
def call(prompt: str, system: str = None) -> str:
messages = []
if system:
*See sub-skills for full details.*
## Anthropic Integration
```python
import anthropic
def create_anthropic_caller(model: str = "Codex-3-opus-20240229"):
"""Create Anthropic API caller."""
client = anthropic.Anthropic()
def call(prompt: str, system: str = None) -> str:
response = client.messages.create(
model=model,
*See sub-skills for full details.*