diff --git a/docs/configuration.md b/docs/configuration.md index 4e7d81f2..ef1d6002 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -23,11 +23,11 @@ default: Provider of LLM. LLM providers that currently are supported by Goose: -| Provider | Required environment variable(s) to access provider | -| ----- | ------------------------------ | -| openai | `OPENAI_API_KEY` | -| anthropic | `ANTHROPIC_API_KEY` | -| databricks | `DATABRICKS_HOST` and `DATABRICKS_TOKEN` | +| Provider | Required environment variable(s) to access provider | +| ---------- | --------------------------------------------------- | +| openai | `OPENAI_API_KEY` | +| anthropic | `ANTHROPIC_API_KEY` | +| databricks | `DATABRICKS_HOST` and `DATABRICKS_TOKEN` | #### processor @@ -52,8 +52,8 @@ Rules designed to control or manage the output of the model. Moderators that cur default: provider: anthropic - processor: claude-3-5-sonnet-20240620 - accelerator: claude-3-5-sonnet-20240620 + processor: claude-3-5-sonnet-20241022 + accelerator: claude-3-5-sonnet-20241022 ``` #### provider as `databricks` @@ -74,8 +74,8 @@ You can tell it to use another provider for example for Anthropic: ```yaml default: provider: anthropic - processor: claude-3-5-sonnet-20240620 - accelerator: claude-3-5-sonnet-20240620 + processor: claude-3-5-sonnet-20241022 + accelerator: claude-3-5-sonnet-20241022 moderator: passive toolkits: - name: developer diff --git a/src/goose/cli/config.py b/src/goose/cli/config.py index 9b613ee1..f0cd55e5 100644 --- a/src/goose/cli/config.py +++ b/src/goose/cli/config.py @@ -94,8 +94,8 @@ def default_model_configuration() -> tuple[str, str, str]: "ollama": (OLLAMA_MODEL, OLLAMA_MODEL), "openai": ("gpt-4o", "gpt-4o-mini"), "anthropic": ( - "claude-3-5-sonnet-20240620", - "claude-3-5-sonnet-20240620", + "claude-3-5-sonnet-20241022", + "claude-3-5-sonnet-20241022", ), "databricks": ( # TODO when function calling is first rec should be: "databricks-meta-llama-3-1-405b-instruct" diff --git a/src/goose/utils/_cost_calculator.py b/src/goose/utils/_cost_calculator.py index 5cdf6950..3e22179c 100644 --- a/src/goose/utils/_cost_calculator.py +++ b/src/goose/utils/_cost_calculator.py @@ -10,6 +10,7 @@ PRICES = { "o1-preview": (15.00, 60.00), "o1-mini": (3.00, 12.00), "claude-3-5-sonnet-20240620": (3.00, 15.00), + "claude-3-5-sonnet-20241022": (3.00, 15.00), "anthropic.claude-3-5-sonnet-20240620-v1:0": (3.00, 15.00), "claude-3-opus-20240229": (15.00, 75.00), "anthropic.claude-3-opus-20240229-v1:0": (15.00, 75.00),