Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Sun <dsun20@bloomberg.net>
  • Loading branch information
yuzisun committed Jan 7, 2025
1 parent be1f29e commit 4745c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/extproc/translator/openai_awsbedrock.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ func (o *openAIToAWSBedrockTranslatorV1ChatCompletion) RequestBody(body router.R

// OpenAIToolsToBedrockToolConfiguration converts openai ChatCompletion tools to aws bedrock tool configurations
func (o *openAIToAWSBedrockTranslatorV1ChatCompletion) OpenAIToolsToBedrockToolConfiguration(openAIReq *openai.ChatCompletionRequest,
bedrockReq *awsbedrock.ConverseInput) error {
bedrockReq *awsbedrock.ConverseInput,
) error {
bedrockReq.ToolConfig = &awsbedrock.ToolConfiguration{}
tools := make([]*awsbedrock.Tool, 0, len(openAIReq.Tools))
for _, toolDefinition := range openAIReq.Tools {
Expand Down

0 comments on commit 4745c50

Please sign in to comment.