Skip to content

Commit

Permalink
[log classifier] fix #5613 (#5614)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaliC authored Aug 30, 2024
1 parent 33e56fd commit 384ad00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/lambda/log-classifier/src/bedrock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn make_query(log: &Log, error_line: &usize, num_lines: usize) -> Opti
let model_id_secondary = "anthropic.claude-3-5-sonnet-20240620-v1:0";
let line_numbers = vec![*error_line];

let log_snippet = get_snippets(log, line_numbers, num_lines, num_lines + 1);
let log_snippet = get_snippets(log, line_numbers, num_lines / 2, num_lines + 1);

// ensure length is 1 of the log_snippet
if log_snippet.len() != 1 {
Expand Down

0 comments on commit 384ad00

Please sign in to comment.