Skip to content

Commit e685dcc

Browse files
authored
Merge pull request #34 from Azure-Samples/gk/storage-fix
Increases model capacity and improves error logging
2 parents e433fc0 + 417289c commit e685dcc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

infra/app/ai/cognitive-services.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ param embeddingModelFormat string = 'OpenAI'
1717
param embeddingModelSkuName string = 'Standard'
1818

1919
@description('The embedding model capacity')
20-
param embeddingModelCapacity int = 50
20+
param embeddingModelCapacity int = 150
2121

2222
@description('The chat model name to deploy')
2323
param chatModelName string = 'gpt-4o'
@@ -29,7 +29,7 @@ param chatModelFormat string = 'OpenAI'
2929
param chatModelSkuName string = 'Standard'
3030

3131
@description('The chat model capacity')
32-
param chatModelCapacity int = 50
32+
param chatModelCapacity int = 150
3333

3434
resource aiServices 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' = {
3535
name: aiServicesName

src/agents/code_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ async def generate_code_style(chat_history: str = "", user_query: str = "") -> s
146146
logger.info("Agent run completed successfully")
147147
break
148148
elif run.status == "failed":
149-
logger.error("Agent run failed with status: %s", run.status)
149+
logger.error("Agent run failed with : %s", run)
150150
raise Exception("Agent run failed")
151151
elif run.status == "requires_action":
152152
# Handle tool calls from the agent

src/agents/deep_wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def generate_deep_wiki(chat_history: str = "", user_query: str = "") -> st
156156
logger.info("Agent run completed successfully")
157157
break
158158
elif run.status == "failed":
159-
logger.error("Agent run failed with status: %s", run.status)
159+
logger.error("Agent run failed with : %s", run)
160160
raise Exception("Agent run failed")
161161
elif run.status == "requires_action":
162162
# Handle tool calls from the agent

0 commit comments

Comments
 (0)