Forked from lmstudio/openai-compat-endpoint
Forked from lmstudio/openai-compat-endpoint
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics, globalConfigSchematics } from "./config";
import { generate } from "./generator";
import { predict } from "./prediction-loop";
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withGenerator(generate);
context.withPredictionLoopHandler(predict);
}
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics, globalConfigSchematics } from "./config";
import { generate } from "./generator";
import { predict } from "./prediction-loop";
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withGenerator(generate);
context.withPredictionLoopHandler(predict);
}