mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-22 17:50:21 +02:00
Remove linux
This commit is contained in:
parent
813720905b
commit
c25f164e28
@ -28,8 +28,7 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
|||||||
os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"
|
os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"
|
||||||
|
|
||||||
HF_CACHE_PATH = Path("/root/.cache/huggingface/")
|
HF_CACHE_PATH = Path("/root/.cache/huggingface/")
|
||||||
# Changed this to be compatible with Linux
|
TEMP_HF_CACHE_PATH = Path("/root/.cache/temp_huggingface/")
|
||||||
TEMP_HF_CACHE_PATH = Path.home() / ".cache" / "temp_huggingface"
|
|
||||||
|
|
||||||
transformer_logging.set_verbosity_error()
|
transformer_logging.set_verbosity_error()
|
||||||
|
|
||||||
|
@ -75,13 +75,9 @@ async function handleRequest(request: NextRequest, path: string[]) {
|
|||||||
backendUrl.searchParams.append(key, value);
|
backendUrl.searchParams.append(key, value);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Added this to allow it to run properly on Linux
|
|
||||||
const headers = new Headers(request.headers);
|
|
||||||
headers.delete("connection");
|
|
||||||
|
|
||||||
const response = await fetch(backendUrl, {
|
const response = await fetch(backendUrl, {
|
||||||
method: request.method,
|
method: request.method,
|
||||||
headers: headers,
|
headers: request.headers,
|
||||||
body: request.body,
|
body: request.body,
|
||||||
signal: request.signal,
|
signal: request.signal,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -89,7 +89,6 @@ import voyageIcon from "../../../public/Voyage.png";
|
|||||||
import googleIcon from "../../../public/Google.webp";
|
import googleIcon from "../../../public/Google.webp";
|
||||||
import xenforoIcon from "../../../public/Xenforo.svg";
|
import xenforoIcon from "../../../public/Xenforo.svg";
|
||||||
import { FaRobot } from "react-icons/fa";
|
import { FaRobot } from "react-icons/fa";
|
||||||
import { size } from "lodash";
|
|
||||||
|
|
||||||
export interface IconProps {
|
export interface IconProps {
|
||||||
size?: number;
|
size?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user