linting
This commit is contained in:
		
							parent
							
								
									8297041059
								
							
						
					
					
						commit
						ac5f8ae6e5
					
				| 
						 | 
					@ -162,7 +162,7 @@
 | 
				
			||||||
    const promptTokenCount:number = filtered.reduce((a, m) => {
 | 
					    const promptTokenCount:number = filtered.reduce((a, m) => {
 | 
				
			||||||
      // Not sure how OpenAI formats it, but this seems to get close to the right counts
 | 
					      // Not sure how OpenAI formats it, but this seems to get close to the right counts
 | 
				
			||||||
      // Sure would be nice to know
 | 
					      // Sure would be nice to know
 | 
				
			||||||
      a += encode('## ' + m.role + " ##:\r\n\r\n" + m.content + "\r\n\r\n\r\n").length
 | 
					      a += encode('## ' + m.role + ' ##:\r\n\r\n' + m.content + '\r\n\r\n\r\n').length
 | 
				
			||||||
      return a
 | 
					      return a
 | 
				
			||||||
    }, 0) + 3
 | 
					    }, 0) + 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
<script context="module" lang="ts">
 | 
					<script context="module" lang="ts">
 | 
				
			||||||
    import { getChatDefaults, getExcludeFromProfile } from './Settings.svelte'
 | 
					    import { getChatDefaults, getExcludeFromProfile } from './Settings.svelte'
 | 
				
			||||||
// Profile definitions
 | 
					// Profile definitions
 | 
				
			||||||
import { addMessage, clearMessages, getChat, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, saveChatStore, setChatSettingValueByKey, setGlobalSettingValueByKey } from './Storage.svelte'
 | 
					import { addMessage, clearMessages, getChat, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, saveChatStore, setGlobalSettingValueByKey } from './Storage.svelte'
 | 
				
			||||||
import type { Message, SelectOption, ChatSettings } from './Types.svelte'
 | 
					import type { Message, SelectOption, ChatSettings } from './Types.svelte'
 | 
				
			||||||
    import { v4 as uuidv4 } from 'uuid'
 | 
					    import { v4 as uuidv4 } from 'uuid'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue