-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
147 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System; | ||
|
||
namespace Microsoft.KernelMemory.DataFormats.AzureAIDocIntel; | ||
|
||
public class AzureAIDocIntelException : KernelMemoryException | ||
{ | ||
/// <inheritdoc /> | ||
public AzureAIDocIntelException(bool? isTransient = null) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public AzureAIDocIntelException(string message, bool? isTransient = null) : base(message) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public AzureAIDocIntelException(string message, Exception? innerException, bool? isTransient = null) : base(message, innerException) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
extensions/AzureOpenAI/AzureOpenAI/AzureOpenAIException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System; | ||
|
||
namespace Microsoft.KernelMemory.AI.AzureOpenAI; | ||
|
||
public class AzureOpenAIException : KernelMemoryException | ||
{ | ||
/// <inheritdoc /> | ||
public AzureOpenAIException(bool? isTransient = null) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public AzureOpenAIException(string message, bool? isTransient = null) : base(message) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public AzureOpenAIException(string message, Exception? innerException, bool? isTransient = null) : base(message, innerException) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System; | ||
|
||
namespace Microsoft.KernelMemory.AI.OpenAI; | ||
|
||
public class OpenAIException : KernelMemoryException | ||
{ | ||
/// <inheritdoc /> | ||
public OpenAIException(bool? isTransient = null) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public OpenAIException(string message, bool? isTransient = null) : base(message) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public OpenAIException(string message, Exception? innerException, bool? isTransient = null) : base(message, innerException) | ||
{ | ||
this.IsTransient = isTransient; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.