Debug AI response
This commit is contained in:
parent
c466c8bad5
commit
d318fed3ca
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ export async function POST(request: Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
console.log("LiteLLM response:", data);
|
||||||
return NextResponse.json({ reply: data.choices?.[0]?.message?.content });
|
return NextResponse.json({ reply: data.choices?.[0]?.message?.content });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue