Compare commits

...

2 Commits

Author SHA1 Message Date
ItzCrazyKns
f83bd06e89 feat(ollama-llm): remove explicit think parameter setting 2025-11-27 11:10:04 +05:30
ItzCrazyKns
7544bbafaf feat(weather-widget): prevent [object Object] from being sent by stringifying 2025-11-27 11:09:37 +05:30
2 changed files with 2 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ You can set skipSearch to true if the weather widget can fully answer the user's
return {
type: 'weather',
llmContext: `Weather in ${params.location} is ${weatherData.current}`,
llmContext: `Weather in ${params.location} is ${JSON.stringify(weatherData.current)}`,
data: {
location: params.location,
latitude: location.lat,
@@ -139,7 +139,7 @@ You can set skipSearch to true if the weather widget can fully answer the user's
return {
type: 'weather',
llmContext: `Weather in ${locationData.display_name} is ${weatherData.current}`,
llmContext: `Weather in ${locationData.display_name} is ${JSON.stringify(weatherData.current)}`,
data: {
location: locationData.display_name,
latitude: params.lat,

View File

@@ -98,7 +98,6 @@ class OllamaLLM extends BaseLLM<OllamaConfig> {
model: this.config.model,
messages: input.messages,
format: z.toJSONSchema(input.schema),
think: false,
options: {
top_p: this.config.options?.topP,
temperature: 0.7,
@@ -126,7 +125,6 @@ class OllamaLLM extends BaseLLM<OllamaConfig> {
messages: input.messages,
format: z.toJSONSchema(input.schema),
stream: true,
think: false,
options: {
top_p: this.config.options?.topP,
temperature: 0.7,