From 48d734516a79427f6234afcddc4a19e580d316c5 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Tue, 3 Mar 2026 11:36:15 -0600 Subject: [PATCH] fix(lint): resolve prettier and dot-notation errors --- apps/api/src/chat-proxy/chat-proxy.controller.ts | 11 +---------- apps/api/src/chat-proxy/chat-proxy.service.ts | 7 ++----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/apps/api/src/chat-proxy/chat-proxy.controller.ts b/apps/api/src/chat-proxy/chat-proxy.controller.ts index 2513643..763e56d 100644 --- a/apps/api/src/chat-proxy/chat-proxy.controller.ts +++ b/apps/api/src/chat-proxy/chat-proxy.controller.ts @@ -1,13 +1,4 @@ -import { - Body, - Controller, - HttpException, - Logger, - Post, - Req, - Res, - UseGuards, -} from "@nestjs/common"; +import { Body, Controller, HttpException, Logger, Post, Req, Res, UseGuards } from "@nestjs/common"; import type { Response } from "express"; import { AuthGuard } from "../auth/guards/auth.guard"; import type { MaybeAuthenticatedRequest } from "../auth/types/better-auth-request.interface"; diff --git a/apps/api/src/chat-proxy/chat-proxy.service.ts b/apps/api/src/chat-proxy/chat-proxy.service.ts index e23e631..731fb58 100644 --- a/apps/api/src/chat-proxy/chat-proxy.service.ts +++ b/apps/api/src/chat-proxy/chat-proxy.service.ts @@ -90,10 +90,7 @@ export class ChatProxyService { * - GUEST_LLM_API_KEY: API key (optional, for cloud providers) * - GUEST_LLM_MODEL: Model name to use */ - async proxyGuestChat( - messages: ChatMessage[], - signal?: AbortSignal - ): Promise { + async proxyGuestChat(messages: ChatMessage[], signal?: AbortSignal): Promise { const llmUrl = this.config.get("GUEST_LLM_URL") ?? DEFAULT_GUEST_LLM_URL; const llmApiKey = this.config.get("GUEST_LLM_API_KEY"); const llmModel = this.config.get("GUEST_LLM_MODEL") ?? DEFAULT_GUEST_LLM_MODEL; @@ -103,7 +100,7 @@ export class ChatProxyService { }; if (llmApiKey) { - headers["Authorization"] = `Bearer ${llmApiKey}`; + headers.Authorization = `Bearer ${llmApiKey}`; } const requestInit: RequestInit = {