Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Apr 17, 2024
1 parent 394a2c3 commit f72aa0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,7 @@ export const DEFAULT_PROVIDER_FORM_VALUES = {
type: 'chat'
}

export const TITLE_GENERATION_PROMPT_MESAGE = `
Generate a title for this conversation in under 10 words.
It show not contain any special characters, spaces or quotes.
`
export const TITLE_GENERATION_PROMPT_MESAGE = 'Generate a very short title for these messages.'

export const WASM_LANGAUAGES: { [key: string]: string } = {
cpp: 'cpp',
Expand Down
1 change: 1 addition & 0 deletions src/extension/conversation-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,6 @@ export class ConversationHistory {
conversations[id] = newConversation
this._context.globalState.update(CONVERSATION_STORAGE_KEY, conversations)
this.setActiveConversation(newConversation)
this._title = ''
}
}
2 changes: 2 additions & 0 deletions src/webview/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pre code {
color: var(--vscode-textPreformat-foreground);
font-weight: 500;
min-height: 20px;
max-height: 40px;
overflow: hidden;
}

.message {
Expand Down

0 comments on commit f72aa0b

Please sign in to comment.