Skip to content

Commit

Permalink
feat: add API Token in ai chat
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanlid committed Feb 14, 2025
1 parent 750d6ac commit 3dfa8df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugins/robot/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export default {
const inProcesing = ref(false)
const selectedModel = ref(AIModelOptions[0])
const { confirm } = useModal()
let tokenValue = ref('')
let showPopover = ref(false)
const tokenValue = ref('')
const showPopover = ref(false)
const { pageSettingState, getDefaultPage } = usePage()
const ROOT_ID = pageSettingState.ROOT_ID
Expand Down Expand Up @@ -314,7 +314,7 @@ export default {
const initCurrentModel = (aiSession) => {
const currentModelValue = JSON.parse(aiSession)?.foundationModel?.model
selectedModel.value = AIModelOptions.find((item) => item.value === currentModelValue)
tokenValue = JSON.parse(aiSession)?.foundationModel?.token
tokenValue.value = JSON.parse(aiSession)?.foundationModel?.token
}
const initChat = () => {
Expand Down

0 comments on commit 3dfa8df

Please sign in to comment.