Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in Anthropic #2193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion maestro-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion maestro-ai/src/main/java/maestro/ai/DemoApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package maestro.ai.antrophic
package maestro.ai.anthropic

import Response
import io.ktor.client.HttpClient
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -93,10 +93,10 @@ class Claude(

json.decodeFromString<Response>(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
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package maestro.ai.antrophic
package maestro.ai.anthropic

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package maestro.ai.antrophic
package maestro.ai.anthropic

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import kotlinx.serialization.Serializable
import maestro.ai.antrophic.Content
import maestro.ai.anthropic.Content

@Serializable
data class Response(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading