diff --git a/terraform/check-ollama.sh b/terraform/check-ollama.sh index 3897846e..c566aed5 100755 --- a/terraform/check-ollama.sh +++ b/terraform/check-ollama.sh @@ -5,10 +5,24 @@ USERNAME=$(terraform output --json | jq -r '.admin_username.value') FQDN="${USERNAME}.canadacentral.cloudapp.azure.com" #curl "http://${FQDN}:80/v1/chat/completions" \ + + +curl http://${FQDN}:80/api/generate -d '{ + "model": "codestral:latest", + "prompt": "Why is the sky blue?", + "stream": false, + "options": { + "temperature": 0 + }, +}' + +exit 0 + + curl "http://${FQDN}:80/v1/chat/comple" \ -H "Content-Type: application/json" \ -d '{ - "model": "codestral", + "model": "codestral:latest", "messages": [ { "role": "system", diff --git a/terraform/hub-nva.tf b/terraform/hub-nva.tf index bd0967d7..7beab8f6 100644 --- a/terraform/hub-nva.tf +++ b/terraform/hub-nva.tf @@ -95,12 +95,12 @@ resource "azurerm_linux_virtual_machine" "hub-nva_virtual_machine" { } resource "azurerm_managed_disk" "log_disk" { - name = "hub-nva-logs" + name = "hub-nva-log_disk" location = azurerm_resource_group.azure_resource_group.location resource_group_name = azurerm_resource_group.azure_resource_group.name storage_account_type = "Standard_LRS" create_option = "Empty" - disk_size_gb = 30 + disk_size_gb = 10 } resource "azurerm_virtual_machine_data_disk_attachment" "log_disk" {