I'm using an OpenAI-compatible backend (LocalAI) and Juggler assumes the context of all models is 8k. That's... ..pretty slim. It can edit each model manually, but it would be nice to have automatic context size recognition.
Note: If you at all feel like adding LocalAI as a provider, it's OpenAI-compatible plus some extras, and the call to retrieve context length is:
# Post to /api/models/vram-estimate
{
"context_size": 0,
"gpu_layers": 0,
"kv_quant_bits": 0,
"model": "<model string>"
}
..technically a call for to estimate vram usage, but its return value includes the max context length that is currently configured for that model.
Edit summary: Changed title, removed nonissue
I'm using an OpenAI-compatible backend (LocalAI) and Juggler assumes the context of all models is 8k. That's... ..pretty slim. It can edit each model manually, but it would be nice to have automatic context size recognition.
Note: If you at all feel like adding LocalAI as a provider, it's OpenAI-compatible plus some extras, and the call to retrieve context length is:
..technically a call for to estimate vram usage, but its return value includes the max context length that is currently configured for that model.
Edit summary: Changed title, removed nonissue