Skip to content

Commit

Permalink
Update ActorOptTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 24, 2023
1 parent 233bc9a commit 73ccea7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 73ccea7

Please sign in to comment.