Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ bifrost/
├── core/ # Core functionality and shared components
│ ├── providers/ # Provider-specific implementations
│ ├── schemas/ # Interfaces and structs used in bifrost
│ ├── tests/ # Tests to make sure everything is in place
│ ├── bifrost.go # Main Bifrost implementation
├── docs/ # Documentations for Bifrost's configurations and contribution guides
Expand Down
16 changes: 9 additions & 7 deletions transports/bifrost-http/integrations/anthropic/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,17 @@ func (r *AnthropicMessageRequest) ConvertToBifrostRequest() *schemas.BifrostRequ
bifrostReq.Params = &schemas.ModelParameters{}
}
toolChoice := &schemas.ToolChoice{
Type: func() schemas.ToolChoiceType {
if r.ToolChoice.Type == "tool" {
return schemas.ToolChoiceTypeFunction
}
return schemas.ToolChoiceType(r.ToolChoice.Type)
}(),
ToolChoiceStruct: &schemas.ToolChoiceStruct{
Type: func() schemas.ToolChoiceType {
if r.ToolChoice.Type == "tool" {
return schemas.ToolChoiceTypeFunction
}
return schemas.ToolChoiceType(r.ToolChoice.Type)
}(),
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
if r.ToolChoice.Type == "tool" && r.ToolChoice.Name != "" {
toolChoice.Function = schemas.ToolChoiceFunction{
toolChoice.ToolChoiceStruct.Function = schemas.ToolChoiceFunction{
Name: r.ToolChoice.Name,
}
}
Comment thread
Pratham-Mishra04 marked this conversation as resolved.
Expand Down
2 changes: 1 addition & 1 deletion transports/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.24.1

require (
github.com/fasthttp/router v1.5.4
github.com/maximhq/bifrost/core v1.1.2
github.com/maximhq/bifrost/core v1.1.3
Comment thread
coderabbitai[bot] marked this conversation as resolved.
github.com/maximhq/bifrost/plugins/maxim v1.0.5
github.com/prometheus/client_golang v1.22.0
github.com/valyala/fasthttp v1.62.0
Expand Down
4 changes: 2 additions & 2 deletions transports/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zt
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/maximhq/bifrost/core v1.1.2 h1:NR5zWD+2dMkj1ySmGqcE7VDJUhkvgrjoMoQikxsdXPU=
github.com/maximhq/bifrost/core v1.1.2/go.mod h1:8ycaWQ9bjQezoUT/x6a82VmPjoqLzyGglQ0RnnlZjqo=
github.com/maximhq/bifrost/core v1.1.3 h1:EBxwxqpCNNs3ck44qBwqrTiKGD+1Avyb57fM3/2wTKs=
github.com/maximhq/bifrost/core v1.1.3/go.mod h1:8ycaWQ9bjQezoUT/x6a82VmPjoqLzyGglQ0RnnlZjqo=
github.com/maximhq/bifrost/plugins/maxim v1.0.5 h1:K67bqb49X0q07UbNCu1jlmdhmQG+gTdC8sxXN5ok5bY=
github.com/maximhq/bifrost/plugins/maxim v1.0.5/go.mod h1:Emik7JHo4BIa6kRWDEqOHgFp8M1BQv13bSOepoWw4aw=
github.com/maximhq/maxim-go v0.1.3 h1:nVzdz3hEjZVxmWHARWIM+Yrn1Jp50qrsK4BA/sz2jj8=
Expand Down