Fix model refresh (sempre locale)
This commit is contained in:
@@ -29,7 +29,7 @@ export default function ModelOverview({ onBackToChat }) {
|
||||
const updateModelData = async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const res = await fetch("/v1/model-info/update", { method: "POST" });
|
||||
const res = await fetch("/v1/models-info/update", { method: "POST" });
|
||||
if (res.ok) {
|
||||
const updated = await res.json();
|
||||
setModelInfo(Array.isArray(updated) ? updated : []);
|
||||
@@ -83,7 +83,7 @@ export default function ModelOverview({ onBackToChat }) {
|
||||
<tr>
|
||||
<th>Nome</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Anno</th>
|
||||
{/*<th>Anno</th>*/}
|
||||
<th>Caratteristiche</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -102,7 +102,7 @@ export default function ModelOverview({ onBackToChat }) {
|
||||
<tr key={model.name}>
|
||||
<td>{model.name}</td>
|
||||
<td>{model.description || "—"}</td>
|
||||
<td>{model.year || "—"}</td>
|
||||
{/*<td>{model.year || "—"}</td>*/}
|
||||
<td>
|
||||
<ul className="mb-0 small">
|
||||
{Array.isArray(model.features) && model.features.length > 0
|
||||
|
||||
Reference in New Issue
Block a user