Skip to content

Commit d1ac53d

Browse files
Add pragma warning disable CS0618 to files using deprecated OpenAI Assistants API
Co-authored-by: SergeyMenshykh <[email protected]>
1 parent fe969a0 commit d1ac53d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIAssistants/Program.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// WARNING: The Assistants API is deprecated and will be shut down.
66
// For more information see the OpenAI documentation: https://platform.openai.com/docs/assistants/migration
77

8+
#pragma warning disable CS0618 // Type or member is obsolete - OpenAI Assistants API is deprecated but still used in this sample
9+
810
using Microsoft.Agents.AI;
911
using OpenAI;
1012

‎dotnet/tests/OpenAIAssistant.IntegrationTests/OpenAIAssistantClientExtensionsTests.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3+
#pragma warning disable CS0618 // Type or member is obsolete - Testing deprecated OpenAI Assistants API extension methods
4+
35
using System;
46
using System.Diagnostics;
57
using System.IO;

0 commit comments

Comments
 (0)