diff --git a/.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml b/.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml index 1cfc09759..0653e3d70 100644 --- a/.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml +++ b/.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install GitHub CLI run: | diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index eba60d018..4824e3835 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -15,7 +15,7 @@ jobs: steps: # Step 1: Checkout the code from your repository - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 # Step 2: Validate the Azure template using microsoft/template-validation-action - name: Validate Azure Template diff --git a/.github/workflows/broken-links-checker.yml b/.github/workflows/broken-links-checker.yml index 51984487e..d9478f28b 100644 --- a/.github/workflows/broken-links-checker.yml +++ b/.github/workflows/broken-links-checker.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 @@ -24,7 +24,7 @@ jobs: - name: Get changed markdown files (PR only) id: changed-markdown-files if: github.event_name == 'pull_request' - uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46 + uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v46 with: files: | **/*.md @@ -34,7 +34,7 @@ jobs: - name: Check Broken Links in Changed Markdown Files id: lychee-check-pr if: github.event_name == 'pull_request' && steps.changed-markdown-files.outputs.any_changed == 'true' - uses: lycheeverse/lychee-action@v2.4.1 + uses: lycheeverse/lychee-action@v2.6.1 with: args: > --verbose --exclude-mail --no-progress --exclude ^https?:// @@ -47,7 +47,7 @@ jobs: - name: Check Broken Links in All Markdown Files in Entire Repo (Manual Trigger) id: lychee-check-manual if: github.event_name == 'workflow_dispatch' - uses: lycheeverse/lychee-action@v2.4.1 + uses: lycheeverse/lychee-action@v2.6.1 with: args: > --verbose --exclude-mail --no-progress --exclude ^https?:// diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 88bf47515..2a2cbb23d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ github.event.workflow_run.head_sha }} - - uses: codfish/semantic-release-action@v3 + - uses: codfish/semantic-release-action@v4 id: semantic with: tag-format: 'v${version}' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f4b89894..d1d35864f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: WEBAPP_URL: ${{ steps.get_output.outputs.WEBAPP_URL }} steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Azure CLI run: | diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index cd0ada9a8..7f4f7fb04 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bda941af8..7dfaea26f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,9 +22,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index b7e70e56b..842cf679f 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -17,6 +17,6 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name != 'merge_group' }} steps: - - uses: amannn/action-semantic-pull-request@v5 + - uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index f77e1e102..8cc4b46c9 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -12,11 +12,11 @@ jobs: steps: # Step 1: Checkout code - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 # Step 2: Set up Python environment - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3e1a5597e..2c6321914 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -17,9 +17,9 @@ jobs: runs-on: - ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python 3.11 - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.11" - name: Install dependencies @@ -35,9 +35,9 @@ jobs: runs-on: - windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python 3.11 - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.11" - name: Install dependencies diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index c91575804..20e3e7c73 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Mark Stale Issues and PRs - uses: actions/stale@v9 + uses: actions/stale@v10 with: stale-issue-message: "This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or it will be closed in 30 days." stale-pr-message: "This PR is stale because it has been open 180 days with no activity. Please update or it will be closed in 30 days." @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 # Fetch full history for accurate branch checks - name: Fetch All Branches diff --git a/.github/workflows/telemetry-template-check.yml b/.github/workflows/telemetry-template-check.yml index ee9233b91..40a792ad6 100644 --- a/.github/workflows/telemetry-template-check.yml +++ b/.github/workflows/telemetry-template-check.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Check for required metadata template line run: | diff --git a/.github/workflows/test-automation.yml b/.github/workflows/test-automation.yml index 593a24c12..f602d4aea 100644 --- a/.github/workflows/test-automation.yml +++ b/.github/workflows/test-automation.yml @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: '3.13' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d9c52774a..efb6a507a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,11 +19,11 @@ jobs: runs-on: ubuntu-latest # Use the latest Ubuntu runner steps: - - uses: actions/checkout@v4 # Checkout the repository + - uses: actions/checkout@v5 # Checkout the repository # Set up Python environment for Backend - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.11" # Set Python version @@ -62,11 +62,11 @@ jobs: runs-on: ubuntu-latest # Use the latest Ubuntu runner steps: - - uses: actions/checkout@v4 # Checkout the repository + - uses: actions/checkout@v5 # Checkout the repository # Set up Node.js environment for Frontend - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '20' # Set the Node.js version diff --git a/src/backend/api/agent/browse_agent_factory.py b/src/backend/api/agent/browse_agent_factory.py index 87ff384ce..c6343eea7 100644 --- a/src/backend/api/agent/browse_agent_factory.py +++ b/src/backend/api/agent/browse_agent_factory.py @@ -48,7 +48,7 @@ async def create_or_get_agent(cls): project_index = await project_client.indexes.create_or_update( name=index_name, version=index_version, - body={ + index={ "connectionName": app_settings.datasource.connection_name, "indexName": app_settings.datasource.index, "type": "AzureSearch", diff --git a/src/backend/api/agent/section_agent_factory.py b/src/backend/api/agent/section_agent_factory.py index f76d90abc..9680b17ee 100644 --- a/src/backend/api/agent/section_agent_factory.py +++ b/src/backend/api/agent/section_agent_factory.py @@ -47,7 +47,7 @@ async def create_or_get_agent(cls): project_index = await project_client.indexes.create_or_update( name=index_name, version=index_version, - body={ + index={ "connectionName": app_settings.datasource.connection_name, "indexName": app_settings.datasource.index, "type": "AzureSearch", diff --git a/src/backend/api/agent/template_agent_factory.py b/src/backend/api/agent/template_agent_factory.py index e16db59b6..5753fd305 100644 --- a/src/backend/api/agent/template_agent_factory.py +++ b/src/backend/api/agent/template_agent_factory.py @@ -47,7 +47,7 @@ async def create_or_get_agent(cls): project_index = await project_client.indexes.create_or_update( name=index_name, version=index_version, - body={ + index={ "connectionName": app_settings.datasource.connection_name, "indexName": app_settings.datasource.index, "type": "AzureSearch", diff --git a/src/frontend/src/helpers/helpers.ts b/src/frontend/src/helpers/helpers.ts index b36dbb016..8816726e5 100644 --- a/src/frontend/src/helpers/helpers.ts +++ b/src/frontend/src/helpers/helpers.ts @@ -28,6 +28,11 @@ export const parseCitationFromMessage = (message: ChatMessage) => { export const cleanJSON = (jsonString: string) => { try { + // Check if the string contains JSON-like patterns before processing + if (!jsonString.includes('{') || !jsonString.includes('}')) { + return '' + } + let lines: string[] let cleanString = '' lines = jsonString.split('\n') diff --git a/src/requirements-dev.txt b/src/requirements-dev.txt index 3d94c83b4..fd415bb9a 100644 --- a/src/requirements-dev.txt +++ b/src/requirements-dev.txt @@ -1,20 +1,20 @@ -r requirements.txt azure-ai-documentintelligence==1.0.2 -Markdown==3.8.2 -requests==2.32.4 +Markdown==3.9 +requests==2.32.5 tqdm==4.67.1 tiktoken -langchain==0.3.26 +langchain==0.3.27 bs4==0.0.2 urllib3==2.5.0 -pytest==8.4.1 -pytest-asyncio==1.0.0 -PyMuPDF==1.26.1 +pytest==8.4.2 +pytest-asyncio==1.2.0 +PyMuPDF==1.26.4 azure-storage-blob chardet azure-keyvault-secrets coverage flake8==7.3.0 -black==25.1.0 +black==25.9.0 autoflake==2.3.1 -isort==6.0.1 \ No newline at end of file +isort==6.1.0 \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt index 2840e7a18..c4c2d95e2 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,28 +1,28 @@ -azure-identity==1.23.0 +azure-identity==1.25.0 # Flask[async]==2.3.2 -openai==1.93.0 -azure-search-documents==11.6.0b12 -azure-storage-blob==12.25.1 +openai==2.0.1 +azure-search-documents==11.7.0b1 +azure-storage-blob==12.26.0 python-dotenv==1.1.1 azure-cosmos==4.9.0 -azure-ai-projects==1.0.0b11 +azure-ai-projects==1.0.0 azure-ai-inference==1.0.0b9 quart==0.20.0 -uvicorn==0.35.0 -aiohttp==3.12.13 +uvicorn==0.37.0 +aiohttp==3.12.15 gunicorn==23.0.0 pydantic==2.11.10 pydantic-settings==2.10.1 flake8==7.3.0 -black==25.1.0 +black==25.9.0 autoflake==2.3.1 -isort==6.0.1 +isort==6.1.0 opentelemetry-exporter-otlp-proto-grpc opentelemetry-exporter-otlp-proto-http opentelemetry-exporter-otlp-proto-grpc azure-monitor-events-extension -opentelemetry-sdk==1.31.1 -opentelemetry-api==1.31.1 -opentelemetry-semantic-conventions==0.52b1 -opentelemetry-instrumentation==0.52b1 -azure-monitor-opentelemetry==1.6.8 \ No newline at end of file +opentelemetry-sdk==1.37.0 +opentelemetry-api==1.37.0 +opentelemetry-semantic-conventions==0.58b0 +opentelemetry-instrumentation==0.58b0 +azure-monitor-opentelemetry==1.8.1 \ No newline at end of file