ApoAlly API#
Przykłady kodu#
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 = "Proszę podaj mi najnowsze informacje na temat reformy szpitali."
}
)
temperature = 0.7
} | ConvertTo-Json -Depth 10
$response = Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Post -Body $body
$response.choices[0].message.content