Commit 1704cf31 by archer

fix: table and message

parent 950dffae
......@@ -195,7 +195,7 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
usage: { prompt_tokens: 1, completion_tokens: 1, total_tokens: 1 },
choices: [
{
message: [{ role: 'assistant', content: answerText }],
message: { role: 'assistant', content: answerText },
finish_reason: 'stop',
index: 0
}
......
......@@ -102,4 +102,4 @@ try {
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