Skip to content

Commit

Permalink
.Net: OpenAI is throttling requests. Temporarily disable these tests …
Browse files Browse the repository at this point in the history
…pending switch to using Azure OpenAI. (#5073)

…

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
  • Loading branch information
markwallace-microsoft committed Feb 19, 2024
1 parent 1dfb45f commit 7a9a8e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public OpenAIToolsTests(ITestOutputHelper output)
.Build();
}

[Fact]
[Fact(Skip = "OpenAI is throttling requests. Switch this test to use Azure OpenAI.")]
public async Task CanAutoInvokeKernelFunctionsAsync()
{
// Arrange
Expand All @@ -56,7 +56,7 @@ void MyInvokingHandler(object? sender, FunctionInvokingEventArgs e)
Assert.Contains("GetCurrentUtcTime", invokedFunctions);
}

[Fact]
[Fact(Skip = "OpenAI is throttling requests. Switch this test to use Azure OpenAI.")]
public async Task CanAutoInvokeKernelFunctionsStreamingAsync()
{
// Arrange
Expand Down Expand Up @@ -91,7 +91,7 @@ void MyInvokingHandler(object? sender, FunctionInvokingEventArgs e)
Assert.Contains("InterpretValue([value, 3])", invokedFunctions);
}

[Fact]
[Fact(Skip = "OpenAI is throttling requests. Switch this test to use Azure OpenAI.")]
public async Task CanAutoInvokeKernelFunctionsWithComplexTypeParametersAsync()
{
// Arrange
Expand All @@ -107,7 +107,7 @@ public async Task CanAutoInvokeKernelFunctionsWithComplexTypeParametersAsync()
Assert.Contains("42.8", result.GetValue<string>(), StringComparison.InvariantCulture); // The WeatherPlugin always returns 42.8 for Dublin, Ireland.
}

[Fact]
[Fact(Skip = "OpenAI is throttling requests. Switch this test to use Azure OpenAI.")]
public async Task CanAutoInvokeKernelFunctionsWithPrimitiveTypeParametersAsync()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public FunctionCallingStepwisePlannerTests(ITestOutputHelper output)
this._bingApiKey = bingApiKeyCandidate;
}

[Theory]
[Theory(Skip = "OpenAI is throttling requests. Switch this test to use Azure OpenAI.")]
[InlineData("What is the tallest mountain on Earth? How tall is it?", new string[] { "WebSearch-Search" })]
[InlineData("What is the weather in Seattle?", new string[] { "WebSearch-Search" })]
[InlineData("What is the current hour number, plus 5?", new string[] { "Time-HourNumber", "Math-Add" })]
Expand Down

0 comments on commit 7a9a8e3

Please sign in to comment.