fix(ui): call API with lighthouse-configuration

This commit is contained in:
Pepe Fagoaga
2025-06-05 10:03:39 +02:00
parent 47d5de2b82
commit 23389d011a
+2 -2
View File
@@ -56,7 +56,7 @@ export const createLighthouseConfig = async (config: {
try {
const payload = {
data: {
type: "lighthouse-configurations",
type: "lighthouse-configuration",
attributes: {
name: "OpenAI",
model: config.model,
@@ -121,7 +121,7 @@ export const updateLighthouseConfig = async (config: {
// Prepare the request payload following the JSONAPI format
const payload = {
data: {
type: "lighthouse-configurations",
type: "lighthouse-configuration",
id: configId,
attributes: {
model: config.model,