Skip to content

Commit

Permalink
chore: add more appropriate error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Nov 15, 2024
1 parent 4e1c10c commit 164d6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (e *Engine) complete(ctx context.Context, state *State) (*Return, error) {

resp, err := e.Model.Call(ctx, state.Completion, e.Env, progress)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed calling model for completion: %w", err)
}

state.Completion.Messages = append(state.Completion.Messages, *resp)
Expand Down

0 comments on commit 164d6a4

Please sign in to comment.