mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-11-20 20:18:15 +00:00
feat(ollamaLLM): disable thinking in obj mode
This commit is contained in:
@@ -96,9 +96,10 @@ 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: this.config.options?.temperature,
|
temperature: 0,
|
||||||
num_predict: this.config.options?.maxTokens,
|
num_predict: this.config.options?.maxTokens,
|
||||||
frequency_penalty: this.config.options?.frequencyPenalty,
|
frequency_penalty: this.config.options?.frequencyPenalty,
|
||||||
presence_penalty: this.config.options?.presencePenalty,
|
presence_penalty: this.config.options?.presencePenalty,
|
||||||
@@ -123,6 +124,7 @@ 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: this.config.options?.temperature,
|
temperature: this.config.options?.temperature,
|
||||||
|
|||||||
Reference in New Issue
Block a user