Commit 1704cf31 by archer

fix: table and message

parent 950dffae
...@@ -195,7 +195,7 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex ...@@ -195,7 +195,7 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
usage: { prompt_tokens: 1, completion_tokens: 1, total_tokens: 1 }, usage: { prompt_tokens: 1, completion_tokens: 1, total_tokens: 1 },
choices: [ choices: [
{ {
message: [{ role: 'assistant', content: answerText }], message: { role: 'assistant', content: answerText },
finish_reason: 'stop', finish_reason: 'stop',
index: 0 index: 0
} }
......
...@@ -102,4 +102,4 @@ try { ...@@ -102,4 +102,4 @@ try {
console.log(error); console.log(error);
} }
export const App: Model<AppType> = models['model'] || model('model', AppSchema); export const App: Model<AppType> = models['app'] || model('app', AppSchema);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment