mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-01-17 11:25:45 +00:00
feat(weather-widget): prevent [object Object] from being sent by stringifying
This commit is contained in:
@@ -94,7 +94,7 @@ You can set skipSearch to true if the weather widget can fully answer the user's
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'weather',
|
type: 'weather',
|
||||||
llmContext: `Weather in ${params.location} is ${weatherData.current}`,
|
llmContext: `Weather in ${params.location} is ${JSON.stringify(weatherData.current)}`,
|
||||||
data: {
|
data: {
|
||||||
location: params.location,
|
location: params.location,
|
||||||
latitude: location.lat,
|
latitude: location.lat,
|
||||||
@@ -139,7 +139,7 @@ You can set skipSearch to true if the weather widget can fully answer the user's
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'weather',
|
type: 'weather',
|
||||||
llmContext: `Weather in ${locationData.display_name} is ${weatherData.current}`,
|
llmContext: `Weather in ${locationData.display_name} is ${JSON.stringify(weatherData.current)}`,
|
||||||
data: {
|
data: {
|
||||||
location: locationData.display_name,
|
location: locationData.display_name,
|
||||||
latitude: params.lat,
|
latitude: params.lat,
|
||||||
|
|||||||
Reference in New Issue
Block a user