Skip to content

Commit

Permalink
Merge pull request #606 from robinmordasiewicz/dev106
Browse files Browse the repository at this point in the history
adding init
  • Loading branch information
robinmordasiewicz authored Sep 20, 2024
2 parents 18d4ea0 + 5746843 commit 49c64da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion terraform/check-ollama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions terraform/hub-nva.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 49c64da

Please sign in to comment.