Spaces:
Paused
Paused
Commit
·
d827272
1
Parent(s):
63b93b4
Update src/pages/api/llm.js
Browse files- src/pages/api/llm.js +1 -1
src/pages/api/llm.js
CHANGED
@@ -31,7 +31,7 @@ export const config = {
|
|
31 |
|
32 |
const handler = async (req) => {
|
33 |
try {
|
34 |
-
const { model, messages, prompt, temperature } = req.
|
35 |
|
36 |
await init((imports) => WebAssembly.instantiate(wasm, imports));
|
37 |
const encoding = new Tiktoken(
|
|
|
31 |
|
32 |
const handler = async (req) => {
|
33 |
try {
|
34 |
+
const { model, messages, prompt, temperature } = (await req.json());
|
35 |
|
36 |
await init((imports) => WebAssembly.instantiate(wasm, imports));
|
37 |
const encoding = new Tiktoken(
|