Skip to content

ApoAlly API#

Code Examples#

Python with OpenAI#

```python import openai

openai.api_base = “https://api.apoally.de” openai.api_key = “APOALLY-API-KEY”

response = client.chat.completions.create( model=”apoally”, messages=[ {“role”: “user”, “content”: “Please provide me with the latest information on the hospital reform.”} ], temperature=0.7 )

response = completion.choices[0].message.content.strip() print($response)