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

Feature Request: New Service support for "bedrock-runtime" #317

Closed
JackKolb-ElationHealth opened this issue Oct 8, 2023 · 6 comments · Fixed by aio-libs/aiobotocore#1037

Comments

@JackKolb-ElationHealth
Copy link

  • Async AWS SDK for Python version: 11.3
  • Python version: 3.10
  • Operating System: macOS

Description

I'm creating a AWS bedrock microservice that uses async boto for nonblocking requests/responses. This microservice is calling AWS bedrock, a relatively new service that provides developer access to LLMs like Claude.

What I Did In Boto3

bedrock = boto3.client(service_name='bedrock-runtime')

What I Did In AIOBoto3

async with self._session.client('bedrock-runtime', config=retry_config, **client_kwargs) as client_instance:
    self._client = client_instance

The error :

botocore/loaders.py\", line 408, in load_service_model\n raise
 UnknownServiceError(\nbotocore.exceptions.UnknownServiceError: Unknown service: 'bedrock-runtime'.

I believe this is due to the current dep version of botocore being a bit older.

I'm naively suggesting a bump to the version of botocore, but I'm not sure how big of a lift that would be.

Let me know if I can provide any more details, happy to help however.

@JackKolb-ElationHealth
Copy link
Author

JackKolb-ElationHealth commented Oct 8, 2023

Thinking this through, I think we might need a dep bump in aiobotocore, not botocore. I added a comment to a existing PR to bump the version of botocore within aiobotocore: aio-libs/aiobotocore#1037 (comment)

But I think we may need a version bump here for aiobotocore once it releases.

@terricain
Copy link
Owner

Yeah once a aiobotocore update is out, i'll update this.

@YuriyGuts
Copy link

Looks like aiobotocore 2.7.0 is out, which pins botocore to botocore>=1.31.16,<1.31.65 🎉

@dacevedo12
Copy link
Contributor

Would it be a version bump or does it require wrapping new async codepaths?

I'd assume aiobotocore took care of that but I'm not too familiar with it

@jakob-keller
Copy link

Would it be a version bump or does it require wrapping new async codepaths?

I'd assume aiobotocore took care of that but I'm not too familiar with it

There were no new async codepaths, merely a version bump. That should all be taken care of in aiobotocore==2.7.0.

@terricain
Copy link
Owner

Sorry about the delay, v12.0.0 is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants