Skip to content

Commit

Permalink
Fix build error.
Browse files Browse the repository at this point in the history
(cherry picked from commit f692e68)

# Conflicts:
#	dotnet/DotNetStandardClasses.sln
  • Loading branch information
claudiamurialdo committed Nov 28, 2024
1 parent cedd8a1 commit f8226d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/dotnetcore/Providers/AI/Model/GXAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected string CallAgent(string assistant, GXProperties gxproperties, IList ch
try
{
GXLogging.Debug(log, "Calling Agent: ", assistant);
return AgentService.AgentHandlerInstance.Assistant(assistant, (List<Chat.ChatMessage>) chatMessages, gxproperties).GetAwaiter().GetResult();
return AgentService.AgentHandlerInstance.Assistant(assistant, (List<Chat.ChatMessage>)chatMessages, gxproperties).GetAwaiter().GetResult();
}
catch (Exception ex)
{
Expand All @@ -31,5 +31,5 @@ protected string CallAgent(string assistant, GXProperties gxproperties, IList ch
}

}

}
}
5 changes: 1 addition & 4 deletions dotnet/test/DotNetCoreUnitTest/Domain/GxEmbeddingTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using GeneXus.AI;
using GeneXus.Utils;
using OpenAI.Chat;
using Xunit;

namespace DotNetCoreUnitTest.Domain
Expand All @@ -26,9 +24,8 @@ public async Task AssistantTest()
GXProperties properties = new GXProperties();
properties.Set("$context", "context for reference");

ChatCompletionResult embedding = await agentService.Assistant(modelId, null, properties);
string embedding = await agentService.Assistant(modelId, null, properties);
Assert.NotNull(embedding);
//Assert.NotNull(embedding.Content);
}
}
}

0 comments on commit f8226d5

Please sign in to comment.