Browse Source

fix: advanced params not being applied to ollama

Timothy J. Baek 8 tháng trước cách đây
mục cha
commit
890824ced4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -863,7 +863,7 @@
 			model: model.id,
 			messages: messagesBody,
 			options: {
-				...(params ?? $settings.params ?? {}),
+				...{ ...($settings?.params ?? {}), ...params },
 				stop:
 					(params?.stop ?? $settings?.params?.stop ?? undefined)
 						? (params?.stop.split(',').map((token) => token.trim()) ?? $settings.params.stop).map(