From f6341603b1475d048769aae467a12b0cdfe19890 Mon Sep 17 00:00:00 2001 From: saimachi Date: Fri, 26 Jul 2024 16:17:58 -0400 Subject: [PATCH 1/2] Added AIModel resource provider storage account details to both QS and Standard. --- deploy/quick-start/config/appconfig.template.json | 14 ++++++++++++++ deploy/standard/config/appconfig.template.json | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/deploy/quick-start/config/appconfig.template.json b/deploy/quick-start/config/appconfig.template.json index bcd05b763a..6c53d8ebb6 100644 --- a/deploy/quick-start/config/appconfig.template.json +++ b/deploy/quick-start/config/appconfig.template.json @@ -21,6 +21,20 @@ "content_type": "", "tags": {} }, + { + "key": "FoundationaLLM:AIModel:ResourceProviderService:Storage:AccountName", + "value": "${env:AZURE_STORAGE_ACCOUNT_NAME}", + "label": null, + "content_type": "", + "tags": {} + }, + { + "key": "FoundationaLLM:AIModel:ResourceProviderService:Storage:AuthenticationType", + "value": "AzureIdentity", + "label": null, + "content_type": "", + "tags": {} + }, { "key": "FoundationaLLM:APIs:AgentHubAPI:APIKey", "value": "{\"uri\":\"${env:AZURE_KEY_VAULT_ENDPOINT}secrets/foundationallm-apis-agenthubapi-apikey\"}", diff --git a/deploy/standard/config/appconfig.template.json b/deploy/standard/config/appconfig.template.json index b0e7354ac9..ff972058bc 100644 --- a/deploy/standard/config/appconfig.template.json +++ b/deploy/standard/config/appconfig.template.json @@ -21,6 +21,20 @@ "content_type": "", "tags": {} }, + { + "key": "FoundationaLLM:AIModel:ResourceProviderService:Storage:AccountName", + "value": "{{storageAccountAdlsName}}", + "label": null, + "content_type": "", + "tags": {} + }, + { + "key": "FoundationaLLM:AIModel:ResourceProviderService:Storage:AuthenticationType", + "value": "AzureIdentity", + "label": null, + "content_type": "", + "tags": {} + }, { "key": "FoundationaLLM:APIs:AgentHubAPI:APIKey", "value": "{\"uri\":\"{{keyvaultUri}}secrets/foundationallm-apis-agenthubapi-apikey\"}", From 315a2cb4f7b4b23adb11b800732fc59f13374d78 Mon Sep 17 00:00:00 2001 From: saimachi Date: Fri, 26 Jul 2024 16:40:11 -0400 Subject: [PATCH 2/2] Updated FoundationaLLM agent template. --- .../FoundationaLLM.template.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/deploy/quick-start/data/resource-provider/FoundationaLLM.Agent/FoundationaLLM.template.json b/deploy/quick-start/data/resource-provider/FoundationaLLM.Agent/FoundationaLLM.template.json index 0d6b06a50e..58a54c158a 100644 --- a/deploy/quick-start/data/resource-provider/FoundationaLLM.Agent/FoundationaLLM.template.json +++ b/deploy/quick-start/data/resource-provider/FoundationaLLM.Agent/FoundationaLLM.template.json @@ -15,18 +15,8 @@ }, "orchestration_settings": { "orchestrator": "LangChain", - "agent_parameters": null, - "endpoint_configuration": { - "auth_type": "key", - "provider": "microsoft", - "endpoint": "${env:AZURE_OPENAI_ENDPOINT}", - "api_key": "FoundationaLLM:AzureOpenAI:API:Key", - "api_version": "2023-05-15" - }, - "model_parameters": { - "temperature": 0, - "deployment_name": "completions" - } + "agent_parameters": null }, + "ai_model_object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.AIModel/aiModels/DefaultCompletionAIModel", "prompt_object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Prompt/prompts/FoundationaLLM" } \ No newline at end of file