reduce file changes
This commit is contained in:
parent
7d5eb828f0
commit
043402afc2
2 changed files with 8 additions and 8 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { SlashCommand } from "../../index.js";
|
||||
import { streamResponse } from "../../llm/stream.js";
|
||||
import { removeQuotesAndEscapes } from "../../util/index.js";
|
||||
import { streamResponse } from "../../llm/stream.js";
|
||||
|
||||
const HttpSlashCommand: SlashCommand = {
|
||||
name: "http",
|
||||
description: "Call an HTTP endpoint to serve response",
|
||||
run: async function* ({ input, params, fetch }) {
|
||||
run: async function* ({ ide, llm, input, params, fetch }) {
|
||||
const url = params?.url;
|
||||
if (!url) {
|
||||
throw new Error("URL is not defined in params");
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import { PlusIcon, XMarkIcon } from "@heroicons/react/24/outline";
|
||||
import type { CodeToEdit } from "core";
|
||||
import { useContext, useState } from "react";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { IdeMessengerContext } from "../../context/IdeMessenger";
|
||||
import CodeToEditListItem from "./CodeToEditListItem";
|
||||
import type { CodeToEdit } from "core";
|
||||
import AddFileButton from "./AddFileButton";
|
||||
import AddFileCombobox from "./AddFileCombobox";
|
||||
import { PlusIcon, XMarkIcon } from "@heroicons/react/24/outline";
|
||||
import { useAppSelector } from "../../redux/hooks";
|
||||
import {
|
||||
addCodeToEdit,
|
||||
removeCodeToEdit,
|
||||
} from "../../redux/slices/sessionSlice";
|
||||
import AddFileButton from "./AddFileButton";
|
||||
import AddFileCombobox from "./AddFileCombobox";
|
||||
import CodeToEditListItem from "./CodeToEditListItem";
|
||||
|
||||
export default function CodeToEditCard() {
|
||||
const dispatch = useDispatch();
|
||||
|
|
@ -56,7 +56,7 @@ export default function CodeToEditCard() {
|
|||
|
||||
return (
|
||||
<div className="bg-vsc-editor-background mx-3 flex flex-col rounded-t-lg p-1">
|
||||
<div className="text-lightgray flex flex-wrap items-center justify-between gap-1.5 py-1.5 pl-3 pr-2 text-xs">
|
||||
<div className="text-lightgray flex items-center justify-between gap-1.5 py-1.5 pl-3 pr-2 text-xs">
|
||||
<span>{title}</span>
|
||||
<AddFileButton onClick={() => setShowAddFileCombobox(true)} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue