mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-19 01:12:46 +00:00
chore: fix typo in "completion" (#1362)
Signed-off-by: justinsb <justinsb@google.com> Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
committed by
GitHub
parent
076ca2f148
commit
06b8f78150
@@ -80,10 +80,10 @@ func (c *GoogleGenAIClient) GetCompletion(ctx context.Context, prompt string) (s
|
|||||||
if !r.Blocked {
|
if !r.Blocked {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return "", fmt.Errorf("complection blocked due to %v with probability %v", r.Category.String(), r.Probability.String())
|
return "", fmt.Errorf("completion blocked due to %v with probability %v", r.Category.String(), r.Probability.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "", errors.New("no complection returned; unknown reason")
|
return "", errors.New("no completion returned; unknown reason")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format output.
|
// Format output.
|
||||||
|
@@ -139,10 +139,10 @@ func (g *GoogleVertexAIClient) GetCompletion(ctx context.Context, prompt string)
|
|||||||
if !r.Blocked {
|
if !r.Blocked {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return "", fmt.Errorf("complection blocked due to %v with probability %v", r.Category.String(), r.Probability.String())
|
return "", fmt.Errorf("completion blocked due to %v with probability %v", r.Category.String(), r.Probability.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "", errors.New("no complection returned; unknown reason")
|
return "", errors.New("no completion returned; unknown reason")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format output.
|
// Format output.
|
||||||
|
Reference in New Issue
Block a user