Skip to content

Commit ad59d94

Browse files
Shawclaude
andcommitted
fix(plugin-local-inference): biome format long import lines
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 709c912 commit ad59d94

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

plugins/plugin-local-inference/src/services/desktop-ffi-backend-runtime.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ import {
3737
desktopLlamaDylibsPresent,
3838
loadDesktopLlama,
3939
} from "./desktop-llama-adapter";
40-
import type { FfiBackendRuntime, FfiBackendSession } from "./ffi-streaming-backend";
40+
import type {
41+
FfiBackendRuntime,
42+
FfiBackendSession,
43+
} from "./ffi-streaming-backend";
4144
import { FfiStreamingRunner } from "./ffi-streaming-runner";
4245

4346
interface ActiveSession {

plugins/plugin-local-inference/src/services/desktop-llama-adapter.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export function resolveDesktopBinDir(
188188
env: NodeJS.ProcessEnv = process.env,
189189
): string {
190190
const stateDir =
191-
env.ELIZA_STATE_DIR ?? env.MILADY_STATE_DIR ?? path.join(os.homedir(), ".eliza");
191+
env.ELIZA_STATE_DIR ??
192+
env.MILADY_STATE_DIR ??
193+
path.join(os.homedir(), ".eliza");
192194
const platform =
193195
process.platform === "darwin"
194196
? "darwin"
@@ -586,8 +588,7 @@ export class DesktopLlamaAdapter {
586588
return {
587589
llmStreamSupported: () => true,
588590
llmStreamOpen: (args) => this.openSession(args.config),
589-
llmStreamPrefill: (args) =>
590-
this.prefillSession(args.stream, args.tokens),
591+
llmStreamPrefill: (args) => this.prefillSession(args.stream, args.tokens),
591592
llmStreamNext: (args) =>
592593
this.nextStep(args.stream, args.maxTokensPerStep, args.maxTextBytes),
593594
llmStreamCancel: (stream) => this.cancelSession(stream),
@@ -617,7 +618,9 @@ export class DesktopLlamaAdapter {
617618
}
618619
// Drafter args are ignored in v1; warn loudly once.
619620
if (
620-
(config.draftMin > 0 || config.draftMax > 0 || config.dflashDrafterPath) &&
621+
(config.draftMin > 0 ||
622+
config.draftMax > 0 ||
623+
config.dflashDrafterPath) &&
621624
!this.warnedDrafterIgnored
622625
) {
623626
console.warn(

0 commit comments

Comments
 (0)