Skip to content

Commit

Permalink
Tune default settings for temperature and tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ksdev-pl committed Jun 19, 2024
1 parent 595ed16 commit 4d8a9b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/AppContents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
+ `Output only the summarized title. The input is: ${message}`
}],
model: 'gpt-3.5-turbo',
temperature: 0.4,
max_tokens: 2025
temperature: 0.5,
max_tokens: 1000
});
await chatStore.setCurrentChatTitle(completion.choices[0].message.content);
}
Expand Down
2 changes: 1 addition & 1 deletion src/stores/settings.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {Settings} from '@/models/settings.model';
export const useSettingsStore = defineStore('settings', () => {
const DEFAULT_OPENAI_TEMP = '0.5';
const DEFAULT_OPENAI_MODEL = 'gpt-3.5-turbo';
const DEFAILT_OPENAI_MAX_TOKENS = '2025';
const DEFAILT_OPENAI_MAX_TOKENS = '8000';

const areSettingsVisible = ref(false);

Expand Down

0 comments on commit 4d8a9b8

Please sign in to comment.