Skip to content

Commit

Permalink
Orchestra: fix nasty typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 12, 2024
1 parent 223ded2 commit f456c97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class Orchestra(
onCommandComplete(index, command)
} catch (ignored: CommandSkipped) {
// Swallow exception
println("ignored CommandSkipped")
onCommandSkipped(index, command)
} catch (e: Throwable) {

Expand Down Expand Up @@ -241,7 +242,7 @@ class Orchestra(
}

private fun initAI(): AI? {
val apikey = System.getenv("OPENAI_TOKEN_COPILOT]")
val apikey = System.getenv("OPENAI_TOKEN_COPILOT")
return if (apikey != null) OpenAI(apiKey = apikey) else null
}

Expand Down Expand Up @@ -354,7 +355,6 @@ class Orchestra(
private fun assertVisualAICommand(command: AssertVisualAICommand): Boolean = runBlocking {
// TODO: make all of Orchestra suspending


if (ai == null) {
throw MaestroException.AINotAvailable("AI is not available")
}
Expand Down

0 comments on commit f456c97

Please sign in to comment.