5 const { LangChainTracer } = await import("npm:langchain/callbacks");
6 const client = new Client({
7 apiUrl: "https://api.smith.langchain.com",
8 apiKey: process.env.LANGSMITH,
9 ...options,
10 });
1export function myApi(name) {
2 return "hi " + name;
3}
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stevekrouse/repos"
6);
14 const { default: genCode } = await pugCodegen;
15 const pugFnStr = genCode(parser.parse(), { inlineRuntimeFunctions: true });
16 const evalResp = await fetch("https://api.val.town/v1/eval", {
17 method: "POST",
18 body: JSON.stringify({
1export function myApi(name) {
2 return "hi " + name;
3}
6 const { micromark } = await import("npm:micromark");
7 const rows = await fetch(
8 "https://data.ny.gov/api/views/7rrd-248n/rows.csv?accessType=DOWNLOAD&sorting=true",
9 )
10 .then((r) => r.text())
2
3export let evalPost1 = fetchJSON(
4 "https://api.val.town/v1/eval",
5 {
6 method: "POST",
4
5export let autoGPT_Test = (async () => {
6 const { Configuration, OpenAIApi } = await import("npm:openai@3.2.1");
7 const configuration = new Configuration({
8 apiKey: process.env.openai,
9 });
10 const openai = new OpenAIApi(configuration);
11 const completion = await openai.createChatCompletion({
12 model: "gpt-4",
2import { set } from "https://esm.town/v/std/set?v=11";
3
4export async function myExpressApi(req: express.Request, res: express.Response) {
5 res.json({
6 count: await set(
4 testMutateSemantics({
5 stateName: "@stevekrouse.testState",
6 api: "localhost:3001",
7 expected: (old, next) => next.n2 !== next.n,
8 mutator: (now) => `(() => {