@@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom'
3
3
import useCourse from '../../hooks/useCourse'
4
4
import useUserStatus from '../../hooks/useUserStatus'
5
5
import useLocalStorageState from '../../hooks/useLocalStorageState'
6
- import { DEFAULT_MODEL } from '../../../config'
6
+ import { DEFAULT_MODEL , DEFAULT_ASSISTANT_INSTRUCTIONS , DEFAULT_MODEL_TEMPERATURE } from '../../../config'
7
7
import useInfoTexts from '../../hooks/useInfoTexts'
8
8
import { Message } from '../../types'
9
9
import { FileSearchResult , ResponseStreamEventData } from '../../../shared/types'
@@ -28,7 +28,7 @@ import { useRagIndices } from '../../hooks/useRagIndices'
28
28
import CourseOption from './generics/CourseOption'
29
29
import SettingsButton from './generics/SettingsButton'
30
30
31
- import { AppContext } from '../../util/context '
31
+ import { AppContext } from '../../util/AppContext '
32
32
33
33
export const ChatV2 = ( ) => {
34
34
const { courseId } = useParams ( )
@@ -44,12 +44,11 @@ export const ChatV2 = () => {
44
44
name : DEFAULT_MODEL ,
45
45
} )
46
46
// TODO: Do translation
47
- const defaultInstructions = 'Olet avulias avustaja'
48
47
const [ assistantInstructions , setAssistantInstructions ] = useLocalStorageState < { content : string } > ( `${ localStoragePrefix } -chat-instructions` , {
49
- content : defaultInstructions ,
48
+ content : DEFAULT_ASSISTANT_INSTRUCTIONS ,
50
49
} )
51
50
const [ modelTemperature , setModelTemperature ] = useLocalStorageState < { value : number } > ( `${ localStoragePrefix } -chat-model-temperature` , {
52
- value : 0.5 ,
51
+ value : DEFAULT_MODEL_TEMPERATURE ,
53
52
} )
54
53
const [ message , setMessage ] = useLocalStorageState < { content : string } > ( `${ localStoragePrefix } -chat-current` , { content : '' } )
55
54
const [ messages , setMessages ] = useLocalStorageState < Message [ ] > ( `${ localStoragePrefix } -chat-messages` , [ ] )
0 commit comments