Skip to content

Conversation

@am17an
Copy link
Collaborator

@am17an am17an commented Dec 18, 2025

This PR adds formatted strings to the server's send_error function

I was testing out the new cli and I thought that these might be more helpful to debug when reading too large an input

This PR adds formatted strings to the server's send_error function
@ngxson
Copy link
Collaborator

ngxson commented Dec 18, 2025

One of the test need to be updated too

send_error(slot, "input is larger than the max context size. skipping", ERROR_TYPE_EXCEED_CONTEXT_SIZE);
send_error(
slot,
string_format(
Copy link
Collaborator

@ngxson ngxson Dec 18, 2025

Choose a reason for hiding this comment

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

just wondering if this is actually needed, because the info about n_tokens and n_ctx already included inside the response (ad dedicated fields, not in the error message)

Edit: hmm ok the CLI doesn't read these fields. I think we can merge this quick fix and I'll refactor this error handling later

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants