Skip to content

Support for LocalAI provider #135

Description

@eode

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions