Skip to content

Conversation

@Lightning00Blade
Copy link
Collaborator

We should match what the HTTP status codes are done in normal scenarios as this may confuse the AI.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status

? `[success - ${responseStatus}]`
: `[failed - ${responseStatus}]`;
} else if (failure) {
if (failure) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved failure first because if we have this text should be more helpful than the status code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need add the status code if it exist in this branch as well.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am in favour of a regular structure. It is not like if the failure comes first the LLM would necessarily pay more attention (might be quite the opposite)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants