Skip to content

Commit

Permalink
refactor: reduce description length default and max values
Browse files Browse the repository at this point in the history
Default value set to 200 and max value set to 300 characters.
  • Loading branch information
SebastianKohler committed Jul 29, 2024
1 parent 569fa30 commit 2f4a34f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this

### Changed

- Default approximate length of description reduced to 200 and max value of slider to 300 characters.
- Deps: update `@angular` to 18.1.2.
- Deps: update `openai` to 4.53.2.
- Deps: update `tslib` to 2.6.3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Model } from '../../types/model.types';
styleUrl: './settings-form.component.scss'
})
export class SettingsFormComponent {
descLengthMax: number = 350;
descLengthMax: number = 300;
descLengthMin: number = 150;
temperatureMax: number = 2.0;
temperatureMin: number = 0.0;
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class SettingsService {
prompts.map(p => ({ code: p.languageCode, name: p.languageDisplayName }))
);
private _promptTemplates = new BehaviorSubject<PromptOption[]>([]);
private _selectedDescLength = new BehaviorSubject<number>(250);
private _selectedDescLength = new BehaviorSubject<number>(200);
private _selectedLanguage = new BehaviorSubject<string>('sv');
private _selectedModel = new BehaviorSubject<Model|undefined>(
models.filter((model) => model.default)[0]
Expand Down

0 comments on commit 2f4a34f

Please sign in to comment.