Skip to content

Commit

Permalink
read system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Dec 21, 2023
1 parent 7324489 commit 141951d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prompts/ui-gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Octokit } from "npm:octokit";
import commitPlugin from "npm:octokit-commit-multiple-files";
import { assert } from "https://deno.land/[email protected]/assert/assert.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
import { getCode } from "./common.ts";

type IssueEvent = {
Expand All @@ -26,7 +27,8 @@ const whitelist = ["Yuyz0112"];
const vxDevPrefix = `[vx.dev]`;
const uiGenLabel = `ui-gen`;

const systemPrompt = await Deno.readTextFile("./ui-gen.md");
const __dirname = new URL(".", import.meta.url).pathname;
const systemPrompt = await Deno.readTextFile(join(__dirname, "./ui-gen.md"));
console.log(systemPrompt);

async function getConnectedPr(
Expand Down

0 comments on commit 141951d

Please sign in to comment.