From 95451665f628e5828257e23a78a8081f6ebfacd2 Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Sat, 14 Dec 2024 20:42:04 +0000 Subject: [PATCH] Fix typo in Anthropic --- maestro-ai/README.md | 2 +- maestro-ai/src/main/java/maestro/ai/DemoApp.kt | 2 +- .../java/maestro/ai/{antrophic => anthropic}/Client.kt | 8 ++++---- .../java/maestro/ai/{antrophic => anthropic}/Common.kt | 2 +- .../java/maestro/ai/{antrophic => anthropic}/Request.kt | 2 +- .../java/maestro/ai/{antrophic => anthropic}/Response.kt | 2 +- .../src/main/java/maestro/orchestra/Orchestra.kt | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) rename maestro-ai/src/main/java/maestro/ai/{antrophic => anthropic}/Client.kt (95%) rename maestro-ai/src/main/java/maestro/ai/{antrophic => anthropic}/Common.kt (93%) rename maestro-ai/src/main/java/maestro/ai/{antrophic => anthropic}/Request.kt (88%) rename maestro-ai/src/main/java/maestro/ai/{antrophic => anthropic}/Response.kt (75%) diff --git a/maestro-ai/README.md b/maestro-ai/README.md index fa8edef27c..325dd2d02e 100644 --- a/maestro-ai/README.md +++ b/maestro-ai/README.md @@ -9,7 +9,7 @@ It's both a library and an executable demo app. An API key is required. Set it with `MAESTRO_CLI_AI_KEY` env var. Examples: - OpenAI: `export MAESTRO_CLI_AI_KEY=sk-...` -- Antrophic: `export MAESTRO_CLI_AI_KEY=sk-ant-api-...` +- Anthropic: `export MAESTRO_CLI_AI_KEY=sk-ant-api-...` ### Build diff --git a/maestro-ai/src/main/java/maestro/ai/DemoApp.kt b/maestro-ai/src/main/java/maestro/ai/DemoApp.kt index f9b8e599c7..2e1a847184 100644 --- a/maestro-ai/src/main/java/maestro/ai/DemoApp.kt +++ b/maestro-ai/src/main/java/maestro/ai/DemoApp.kt @@ -10,7 +10,7 @@ import com.github.ajalt.clikt.parameters.types.float import com.github.ajalt.clikt.parameters.types.path import kotlinx.coroutines.async import kotlinx.coroutines.runBlocking -import maestro.ai.antrophic.Claude +import maestro.ai.anthropic.Claude import maestro.ai.openai.OpenAI import java.io.File import java.nio.file.Path diff --git a/maestro-ai/src/main/java/maestro/ai/antrophic/Client.kt b/maestro-ai/src/main/java/maestro/ai/anthropic/Client.kt similarity index 95% rename from maestro-ai/src/main/java/maestro/ai/antrophic/Client.kt rename to maestro-ai/src/main/java/maestro/ai/anthropic/Client.kt index 9246fae4f2..cfaa96bbd5 100644 --- a/maestro-ai/src/main/java/maestro/ai/antrophic/Client.kt +++ b/maestro-ai/src/main/java/maestro/ai/anthropic/Client.kt @@ -1,4 +1,4 @@ -package maestro.ai.antrophic +package maestro.ai.anthropic import Response import io.ktor.client.HttpClient @@ -47,7 +47,7 @@ class Claude( ): CompletionData { val imagesBase64 = images.map { it.encodeBase64() } - // Fallback to Antrophic defaults + // Fallback to Anthropic defaults val actualTemperature = temperature ?: defaultTemperature val actualModel = model ?: defaultModel val actualMaxTokens = maxTokens ?: defaultMaxTokens @@ -93,10 +93,10 @@ class Claude( json.decodeFromString(httpResponse.bodyAsText()) } catch (e: SerializationException) { - logger.error("Failed to parse response from Antrophic", e) + logger.error("Failed to parse response from Anthropic", e) throw e } catch (e: Exception) { - logger.error("Failed to complete request to Antrophic", e) + logger.error("Failed to complete request to Anthropic", e) throw e } diff --git a/maestro-ai/src/main/java/maestro/ai/antrophic/Common.kt b/maestro-ai/src/main/java/maestro/ai/anthropic/Common.kt similarity index 93% rename from maestro-ai/src/main/java/maestro/ai/antrophic/Common.kt rename to maestro-ai/src/main/java/maestro/ai/anthropic/Common.kt index 331b3918c0..5725d8c608 100644 --- a/maestro-ai/src/main/java/maestro/ai/antrophic/Common.kt +++ b/maestro-ai/src/main/java/maestro/ai/anthropic/Common.kt @@ -1,4 +1,4 @@ -package maestro.ai.antrophic +package maestro.ai.anthropic import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable diff --git a/maestro-ai/src/main/java/maestro/ai/antrophic/Request.kt b/maestro-ai/src/main/java/maestro/ai/anthropic/Request.kt similarity index 88% rename from maestro-ai/src/main/java/maestro/ai/antrophic/Request.kt rename to maestro-ai/src/main/java/maestro/ai/anthropic/Request.kt index 577fe8754c..74cf8ba5e0 100644 --- a/maestro-ai/src/main/java/maestro/ai/antrophic/Request.kt +++ b/maestro-ai/src/main/java/maestro/ai/anthropic/Request.kt @@ -1,4 +1,4 @@ -package maestro.ai.antrophic +package maestro.ai.anthropic import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable diff --git a/maestro-ai/src/main/java/maestro/ai/antrophic/Response.kt b/maestro-ai/src/main/java/maestro/ai/anthropic/Response.kt similarity index 75% rename from maestro-ai/src/main/java/maestro/ai/antrophic/Response.kt rename to maestro-ai/src/main/java/maestro/ai/anthropic/Response.kt index d6b261cbc2..cdf2dfb338 100644 --- a/maestro-ai/src/main/java/maestro/ai/antrophic/Response.kt +++ b/maestro-ai/src/main/java/maestro/ai/anthropic/Response.kt @@ -1,5 +1,5 @@ import kotlinx.serialization.Serializable -import maestro.ai.antrophic.Content +import maestro.ai.anthropic.Content @Serializable data class Response( diff --git a/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt b/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt index 53c2735637..c3b05ec4e8 100644 --- a/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt +++ b/maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt @@ -26,7 +26,7 @@ import maestro.ai.AI import maestro.ai.AI.Companion.AI_KEY_ENV_VAR import maestro.ai.Defect import maestro.ai.Prediction -import maestro.ai.antrophic.Claude +import maestro.ai.anthropic.Claude import maestro.ai.openai.OpenAI import maestro.js.GraalJsEngine import maestro.js.JsEngine