From f49fbd87fc6c2b0eddeb3186d0688dbd1b5144c1 Mon Sep 17 00:00:00 2001 From: dezoito Date: Wed, 1 May 2024 16:27:52 -0300 Subject: [PATCH] Fixes bug with system prompt config and adds default value to it --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/Atoms.ts | 2 +- src/Interfaces/index.ts | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36559bd..bf25c74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [Version 0.4.3] - 2024-05-01 + +### Fixes + +- Bug with new installations that had no previous configs for "system prompt" + ## [Version 0.4.2] - 2024-05-01 ### Added diff --git a/package.json b/package.json index 7ef7c90..418b8b5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ollama-grid-search", "private": true, - "version": "0.4.2", + "version": "0.4.3", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 764327f..47ef244 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grid-search-desktop" -version = "0.4.2" +version = "0.4.3" description = "A Tauri App to perform Grid Search and A/B testing experiments on LLMs" authors = ["dezoito"] license = "Whatever is in the repo" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 419b01a..fb0795e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ollama-grid-search", - "version": "0.4.2" + "version": "0.4.3" }, "tauri": { "allowlist": { diff --git a/src/Atoms.ts b/src/Atoms.ts index 8f6ded6..a9b5a35 100644 --- a/src/Atoms.ts +++ b/src/Atoms.ts @@ -33,7 +33,7 @@ const atomWithLocalStorage = (key: string, initialValue: unknown) => { const defaultConfigs: IDefaultConfigs = { request_timeout: 300, server_url: "http://localhost:11434", - system_prompt_prompt: "", + system_prompt: "You are a helpful AI assistant.", default_options: { mirostat: 0, mirostat_tau: 5.0, diff --git a/src/Interfaces/index.ts b/src/Interfaces/index.ts index 2976075..fb28bca 100644 --- a/src/Interfaces/index.ts +++ b/src/Interfaces/index.ts @@ -40,7 +40,7 @@ export type TParamIteration = { export interface IDefaultConfigs { request_timeout: number; server_url: string; - system_prompt_prompt: string; + system_prompt: string; // default_options: { // [key: string]: number | string | boolean | string[]; // };