Comments (1)
I think I have a possible solution.
remotes::install_github("dyfanjones/paws/paws.common", ref ="unmarshal_header")
I believe aws sdk go v1 would have this bug as it skips the unmarshalling of headers that's first character is the same when set to lower case i.e. contentType
https://github.com/aws/aws-sdk-go/blob/main/private/protocol/rest/unmarshal.go#L117-L122
However botocore doesn't do this and would unmarshal all headers 🤔 when location is found.
https://github.com/boto/botocore/blob/7e24ee2369ef2fbd0bb89294848e2e4fc76e66a7/botocore/parsers.py#L949-L971
library(paws)
client <- bedrockruntime(config(credentials(profile = "paws")))
body <- list(prompt = "\n\nHuman: Tell me a funny joke about outer space\n\nAssistant:") |>
jsonlite::toJSON(auto_unbox = TRUE)
response <- client$invoke_model(
body = body,
modelId = "ai21.j2-ultra",
)
response$contentType
#> [1] "application/json"
Created on 2024-03-12 with reprex v2.1.0
from paws.
Related Issues (20)
- status of iam_credentials_provider HOT 9
- Consider using stringi as dependency HOT 1
- paws.common 0.7.1 cran release
- AWS config file doesn't support `endpoint_url` HOT 8
- Can't update lambda function with Ephemeral Stroage HOT 5
- Documentation page taking a long time to load HOT 11
- paws.common 0.7.2 cran release
- paws 0.6.0 cran release
- Update `paws_check_rhub` for rhubv2 HOT 1
- Fix paws.security.identity documentation
- s3$list_object_versions stopped working HOT 31
- Support EKS service accounts. HOT 2
- Potential issue with AWS default S3 region of us-east-1 HOT 11
- credential expiration comes back as numeric Inf (unclassed) HOT 5
- Getting 403 error when trying to access public S3 bucket HOT 3
- is it possible to list delete markers with s3$list_object_versions? HOT 17
- Refresh cached credentials
- paws.common release
- omics service error: could not resolve host HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paws.