Merge pull request #1450 from JGalego/feat/bedrock-update

feat(bedrock): Temporary AWS credentials via env vars + supported models update
This commit is contained in:
Alexander Wu 2024-10-20 13:58:03 +08:00 committed by GitHub
commit 8f34c746a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 178 additions and 60 deletions

View file

@ -3,7 +3,7 @@ import json
import pytest
from metagpt.provider.bedrock.utils import (
NOT_SUUPORT_STREAM_MODELS,
NOT_SUPPORT_STREAM_MODELS,
SUPPORT_STREAM_MODELS,
)
from metagpt.provider.bedrock_api import BedrockLLM
@ -14,7 +14,7 @@ from tests.metagpt.provider.req_resp_const import (
)
# all available model from bedrock
models = SUPPORT_STREAM_MODELS | NOT_SUUPORT_STREAM_MODELS
models = SUPPORT_STREAM_MODELS | NOT_SUPPORT_STREAM_MODELS
messages = [{"role": "user", "content": "Hi!"}]
usage = {
"prompt_tokens": 1000000,