Skip to content

Commit

Permalink
Complete OpenAI to AWS Bedrock conversion (#64)
Browse files Browse the repository at this point in the history
- Complete OpenAI Chat completion and AWSBedrock Converse type
definition
- Additional conversion for InferenceConfiguration and ToolConfig
- Error handling and convert to OpenAI error
- Convert to table testing and add more tests

---------

Signed-off-by: Dan Sun <[email protected]>
  • Loading branch information
yuzisun authored Jan 8, 2025
1 parent c64eaac commit cb6b2e0
Show file tree
Hide file tree
Showing 7 changed files with 1,825 additions and 180 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.28.7
github.com/envoyproxy/gateway v1.2.4
github.com/envoyproxy/go-control-plane/envoy v1.32.2
github.com/google/go-cmp v0.6.0
github.com/openai/openai-go v0.1.0-alpha.43
github.com/stretchr/testify v1.10.0
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e
google.golang.org/grpc v1.69.2
google.golang.org/protobuf v1.36.1
k8s.io/apimachinery v0.32.0
k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078
sigs.k8s.io/controller-runtime v0.19.3
sigs.k8s.io/gateway-api v1.2.1
sigs.k8s.io/yaml v1.4.0
Expand Down Expand Up @@ -51,7 +53,6 @@ require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/imdario/mergo v1.0.1 // indirect
Expand Down Expand Up @@ -92,7 +93,6 @@ require (
k8s.io/client-go v0.31.2 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.3 // indirect
)
Loading

0 comments on commit cb6b2e0

Please sign in to comment.