ApoAlly API#
Code-Beispiele#
Python mit OpenAI#
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": "Bitte liefere mir die neuesten Informationen zur Krankenhausreform."}
],
temperature=0.7
)
response = completion.choices[0].message.content.strip()
print($response)