Skip to content

Commit

Permalink
Fix typo in Anthropic
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler committed Dec 14, 2024
1 parent ada536a commit 9545166
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
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

0 comments on commit 9545166

Please sign in to comment.