Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Go] better error message for LookupGeneratorAction
Browse files Browse the repository at this point in the history
ianlancetaylor committed May 14, 2024
1 parent fb51cf6 commit 137935b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/ai/generator.go
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ type generatorActionType = genkit.Action[*GenerateRequest, *GenerateResponse, *C
func LookupGeneratorAction(provider, name string) (Generator, error) {
action := genkit.LookupAction(genkit.ActionTypeModel, provider, name)
if action == nil {
return nil, fmt.Errorf("LookupGeneratorAction: no generator action named %q", name)
return nil, fmt.Errorf("LookupGeneratorAction: no generator action named %q/%q", provider, name)
}
actionInst, ok := action.(*generatorActionType)
if !ok {

0 comments on commit 137935b

Please sign in to comment.