mirror of
https://github.com/open-webui/open-webui
synced 2025-05-30 02:02:13 +00:00
refac
This commit is contained in:
parent
ab1b910d80
commit
a7d8ed0c6d
@ -1493,7 +1493,10 @@
|
|||||||
params?.system ?? $settings?.system ?? '',
|
params?.system ?? $settings?.system ?? '',
|
||||||
$user.name,
|
$user.name,
|
||||||
$settings?.userLocation
|
$settings?.userLocation
|
||||||
? await getAndUpdateUserLocation(localStorage.token)
|
? await getAndUpdateUserLocation(localStorage.token).catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
return undefined;
|
||||||
|
})
|
||||||
: undefined
|
: undefined
|
||||||
)}${
|
)}${
|
||||||
(responseMessage?.userContext ?? null)
|
(responseMessage?.userContext ?? null)
|
||||||
@ -1578,7 +1581,12 @@
|
|||||||
variables: {
|
variables: {
|
||||||
...getPromptVariables(
|
...getPromptVariables(
|
||||||
$user.name,
|
$user.name,
|
||||||
$settings?.userLocation ? await getAndUpdateUserLocation(localStorage.token) : undefined
|
$settings?.userLocation
|
||||||
|
? await getAndUpdateUserLocation(localStorage.token).catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
return undefined;
|
||||||
|
})
|
||||||
|
: undefined
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
model_item: $models.find((m) => m.id === model.id),
|
model_item: $models.find((m) => m.id === model.id),
|
||||||
|
Loading…
Reference in New Issue
Block a user