Skip to content

Commit

Permalink
Fixes bug with system prompt config and adds default value to it
Browse files Browse the repository at this point in the history
  • Loading branch information
dezoito committed May 1, 2024
1 parent ff02ed0 commit f49fbd8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ollama-grid-search",
"private": true,
"version": "0.4.2",
"version": "0.4.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "ollama-grid-search",
"version": "0.4.2"
"version": "0.4.3"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/Atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
// };
Expand Down

0 comments on commit f49fbd8

Please sign in to comment.