functai for TypeScript - v0.1.0
    Preparing search index...

    Function baked

    • A model baked anywhere (Python's functai.bake, or a trainer that wrote baked.json format 2), its weights served by an OpenAI-compatible server at url (vllm serve <folder>/model serves /v1/chat/completions). fn.using({ lm: student }) runs fn on it, laid out exactly as it was trained: the student's signature and layout, no worked examples, the chat template the server applies with thinking off. A call is refused when fn changed since it was baked (baked-changed), or gives a fixed input another value (baked-fixed) or a derived one a pair the student never saw (baked-derived).

      Parameters

      • folder: string
      • opts: { apiKey?: string; model?: string; timeout?: number; url: string }

      Returns BakedModel