You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR is the first step towards improving auto-generated code
snippets, mainly focusing on improving chat model inputs.
Highlights of the PR:
- [x] JS snippets were missing the content type header (`"Content-Type":
"application/json"`)
- [x] Code adapted from https://huggingface.co/blog/tgi-messages-api
- [x] Moved snippet generation code to separate folders , but I think we
can move this all into `tasks/[task]/snippet.ts`. The reason against
keeping it all in a single file (which was `snippets/inputs.ts`) is that
this will grow in complexity as we improve code snippets across all
other tasks.
- [x] Some models don't support system messages, and will throw an error
or ignore the system message. How should we handle this? (EDIT: Fixed by
only specifying a user message by default, which almost all models
should support)
0 commit comments