-
Notifications
You must be signed in to change notification settings - Fork 51
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
Goose fails with AWS Bedrock with httpx 0.28.1, but is working with older 0.27.2 #438
Comments
odd - @VasilijP most of the net new work is on v1.0 branch which shoudlnt' have this issue (as not using python and thus httpx). |
The following script was generated by AI Agent to reproduce the bug in this issue: # goose/reproduce.py
import httpx
def test_bedrock_request():
try:
url = 'https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-3-5-sonnet-20240620-v1:0/converse'
headers = {
"Authorization": "Bearer YOUR_AWS_SECRET_ACCESS_KEY",
"Content-Type": "application/json"
}
payload = {
"input": "Hello, how are you?"
}
response = httpx.post(url, headers=headers, json=payload)
response.raise_for_status() # This will raise an HTTPStatusError for status codes 4xx/5xx
print("Test passed successfully with no errors!")
except httpx.HTTPStatusError as e:
raise AssertionError(e)
if __name__ == "__main__":
test_bedrock_request() How to run: python3 goose/reproduce.py Expected Result:
Please review the usefulness of this reproduction script. We hope this script is helpful for maintainers to reproduce, localize and fix the issue, and has the potential to enhance the test suite.
|
As title says:
When using Claude 3.5 on Amazon Bedrock and goose-ai 0.9.11, works with httpx==0.27.2, but fails with error above when using httpx==0.28.1
The text was updated successfully, but these errors were encountered: