Skip to content

Commit

Permalink
Fixed a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
alkampfergit committed Jun 1, 2024
1 parent b802cf2 commit 6bfb2ea
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public CohereReRankTests()
[Fact]
public async Task Basic_cohere_reranking()
{
CohereConfiguration cohereConfig = CreatConfig();
CohereConfiguration cohereConfig = CreateConfig();
var cohereClient = new RawCohereClient(cohereConfig, _ihttpClientFactory);
var ReRankResult = await cohereClient.ReRankAsync(new CohereReRankRequest("What is the capital of the United States?",
["Carson City is the capital city of the American state of Nevada.",
Expand All @@ -42,7 +42,7 @@ public async Task Basic_cohere_reranking()
[Fact]
public async Task Can_rerank_empty_document_list()
{
CohereConfiguration cohereConfig = CreatConfig();
CohereConfiguration cohereConfig = CreateConfig();
var cohereClient = new RawCohereClient(cohereConfig, _ihttpClientFactory);
var ReRankResult = await cohereClient.ReRankAsync(new CohereReRankRequest("What is the capital of the United States?", []));

Expand All @@ -53,7 +53,7 @@ public async Task Can_rerank_empty_document_list()
[Fact]
public async Task Basic_cohere_Rag_streaming()
{
CohereConfiguration cohereConfig = CreatConfig();
CohereConfiguration cohereConfig = CreateConfig();
var cohereClient = new RawCohereClient(cohereConfig, _ihttpClientFactory);

var records = new List<MemoryRecord>();
Expand All @@ -71,7 +71,7 @@ public async Task Basic_cohere_Rag_streaming()
[Fact]
public async Task Basic_cohere_Rag()
{
CohereConfiguration cohereConfig = CreatConfig();
CohereConfiguration cohereConfig = CreateConfig();
var cohereClient = new RawCohereClient(cohereConfig, _ihttpClientFactory);

var records = new List<MemoryRecord>();
Expand Down Expand Up @@ -117,7 +117,7 @@ public void Tokenizer_raw_test()
Assert.Equal(8, count);
}

private static CohereConfiguration CreatConfig()
private static CohereConfiguration CreateConfig()
{
var cohereConfig = new CohereConfiguration
{
Expand Down

0 comments on commit 6bfb2ea

Please sign in to comment.