Skip to content

Commit

Permalink
Add claude 3.5 sonnet to multi modal llms (#14932)
Browse files Browse the repository at this point in the history
  • Loading branch information
diicellman authored Jul 24, 2024
1 parent 479d72a commit 1d7f303
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import logging
from typing import Any, Dict, Optional, Sequence, Tuple, List
import base64
import httpx
import logging
from typing import Any, Dict, List, Optional, Sequence, Tuple

import httpx
from llama_index.core.base.llms.generic_utils import get_from_param_or_env
from llama_index.core.multi_modal_llms.generic_utils import encode_image
from llama_index.core.schema import ImageDocument
from llama_index.core.base.llms.generic_utils import get_from_param_or_env

DEFAULT_ANTHROPIC_API_TYPE = "anthropic_ai"
DEFAULT_ANTHROPIC_API_BASE = "https://api.anthropic.com"
Expand All @@ -16,6 +16,7 @@
"claude-3-opus-20240229": 180000,
"claude-3-sonnet-20240229": 180000,
"claude-3-haiku-20240307": 180000,
"claude-3-5-sonnet-20240620": 180000,
}


Expand Down Expand Up @@ -111,7 +112,8 @@ def resolve_anthropic_credentials(
api_base: Optional[str] = None,
api_version: Optional[str] = None,
) -> Tuple[Optional[str], str, str]:
""" "Resolve Anthropic credentials.
"""
"Resolve Anthropic credentials.
The order of precedence is:
1. param
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-multi-modal-llms-anthropic"
readme = "README.md"
version = "0.1.5"
version = "0.1.6"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down

0 comments on commit 1d7f303

Please sign in to comment.