From 73ccea7c58e9436f03619e29fee072b449d20c9d Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Fri, 24 Nov 2023 00:42:44 -0500 Subject: [PATCH] Update ActorOptTest.kt --- .../java/com/simiacryptus/skyenet/core/actors/ActorOptTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/com/simiacryptus/skyenet/core/actors/ActorOptTest.kt b/core/src/test/java/com/simiacryptus/skyenet/core/actors/ActorOptTest.kt index 81dc424d..822be404 100644 --- a/core/src/test/java/com/simiacryptus/skyenet/core/actors/ActorOptTest.kt +++ b/core/src/test/java/com/simiacryptus/skyenet/core/actors/ActorOptTest.kt @@ -2,6 +2,7 @@ package com.simiacryptus.skyenet.core.actors import com.simiacryptus.jopenai.OpenAIClient import com.simiacryptus.skyenet.core.actors.opt.ActorOptimization +import com.simiacryptus.skyenet.core.actors.opt.ActorOptimization.Companion.toChatMessage import com.simiacryptus.skyenet.core.actors.opt.Expectation import org.slf4j.LoggerFactory import org.slf4j.event.Level @@ -44,7 +45,7 @@ object ActorOptTest { userMessages = listOf( "I want to buy a book.", "A history book about Napoleon.", - ), + ).map { it.toChatMessage() }, expectations = listOf( Expectation.ContainsMatch("""`search\('.*?'\)`""".toRegex(), critical = false), Expectation.ContainsMatch("""search\(.*?\)""".toRegex(), critical = false),