saving prompt configs works

This commit is contained in:
Kyle Corbitt
2023-06-23 12:18:09 -07:00
parent a31c112745
commit ca78406ad1
13 changed files with 291 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
import { JSONSerializable } from "./fillTemplate";
import { JSONSerializable } from "../types";
export async function getChatCompletion(payload: JSONSerializable, apiKey: string) {
const response = await fetch("https://api.openai.com/v1/chat/completions", {