Zum Inhalt

ApoAlly API#

Code-Beispiele#

Powershell#

$apiUrl = "https://api.apoally.de/api/chat/completions"
$headers = @{
    "Authorization" = "Bearer YOUR_API_KEY"
    "Content-Type" = "application/json"
}
$body = @{
    model = "apoally"
    messages = @(
        @{
            role = "user"
            content = "Bitte liefere mir die neuesten Informationen zur Krankenhausreform."
        }
    )
    temperature = 0.7
} | ConvertTo-Json -Depth 10
$response = Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Post -Body $body
$response.choices[0].message.content