Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
250 B
3
Indexable
Never
```python
import openai

openai.api_key = 'your-api-key'  # Replace with your API key

response = openai.Completion.create(
    engine="davinci",
    prompt="Translate the following English text to French: 'Hello, how are you?'",
    max_tokens=50
)