mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-01-15 02:15:43 +00:00
Compare commits
2 Commits
0a62c60da2
...
f83bd06e89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f83bd06e89 | ||
|
|
7544bbafaf |
@@ -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,
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ class OllamaLLM extends BaseLLM<OllamaConfig> {
|
|||||||
model: this.config.model,
|
model: this.config.model,
|
||||||
messages: input.messages,
|
messages: input.messages,
|
||||||
format: z.toJSONSchema(input.schema),
|
format: z.toJSONSchema(input.schema),
|
||||||
think: false,
|
|
||||||
options: {
|
options: {
|
||||||
top_p: this.config.options?.topP,
|
top_p: this.config.options?.topP,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
@@ -126,7 +125,6 @@ class OllamaLLM extends BaseLLM<OllamaConfig> {
|
|||||||
messages: input.messages,
|
messages: input.messages,
|
||||||
format: z.toJSONSchema(input.schema),
|
format: z.toJSONSchema(input.schema),
|
||||||
stream: true,
|
stream: true,
|
||||||
think: false,
|
|
||||||
options: {
|
options: {
|
||||||
top_p: this.config.options?.topP,
|
top_p: this.config.options?.topP,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
|
|||||||
Reference in New Issue
Block a user