comment out old code
This commit is contained in:
parent
51d2459460
commit
220fb1512a
|
@ -1,5 +1,4 @@
|
|||
/** @type {import('./$types').Actions} */
|
||||
|
||||
/*
|
||||
import { OpenAI } from "langchain/llms";
|
||||
|
||||
import * as dotenv from 'dotenv';
|
||||
|
@ -25,13 +24,10 @@ export const actions = {
|
|||
|
||||
const model = new OpenAI({ temperature: 0.9 });
|
||||
const res = await model.call(prompt);
|
||||
|
||||
//const res = "Just pretend I'm a real AI. I'm not, that's just for testing and styling purposes.";
|
||||
//console.log(prompt);
|
||||
//const res = "Was that your prompt? " + prompt;
|
||||
return {
|
||||
prompt: prompt,
|
||||
generated: res
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
*/
|
Loading…
Reference in New Issue