Skip to content

Commit

Permalink
Update child_process import in index.ts
Browse files Browse the repository at this point in the history
Import both exec and spawn from child_process for better code
organization and clarity.

Generated by gpt-3.5-turbo
  • Loading branch information
joone committed Feb 24, 2024
1 parent c465a3e commit b5090ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import * as path from "path";
import * as os from "os";
import * as readline from "readline";
import * as readlinePromises from "readline/promises";
import { exec } from "child_process";
const { spawn } = require("child_process");
import { exec, spawn } from "child_process";
import { OpenAiAPI, OllamaAPI } from "./llm";

import { ChatHistory } from "./history";
Expand Down

0 comments on commit b5090ed

Please sign in to comment.