Skip to content

Commit

Permalink
update 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
huanhe4096 committed Nov 19, 2024
1 parent b48e9b1 commit 8a4f37a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 12 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ The translate, llama model, and other services can be started separately. Please

# Updates

## 0.6.2

- Updated AI model selection
- Fixed footer text
- Updated visual layout
- Updated default openai model

## 0.6.0

- Add new template for loading taxonomy
- Add dependency for loading prompt
- Fixed layout
- Fixed import loading issue

Expand Down
10 changes: 5 additions & 5 deletions web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ onMounted(() => {
<div class="footer">
<div>
<i class="fa-regular fa-clipboard"></i>
{{ store.taxonomy_file?.fn }}:
{{ store.taxonomy_file?.name }}:
<b>{{ store.taxonomy.length }}</b> taxonomies
|
<i class="fa fa-database"></i>
Expand Down Expand Up @@ -78,7 +78,7 @@ onMounted(() => {
height: 4rem;
display: flex;
flex-direction: column;
background-color: #cacaca;
background-color: #dfdfdf;
}
.footer {
position: absolute;
Expand All @@ -89,7 +89,7 @@ onMounted(() => {
display: flex;
flex-direction: row;
align-items: center;
background-color: #cacaca;
background-color: #dfdfdf;
justify-content: space-between;
}
.oper-bar {
Expand All @@ -113,14 +113,14 @@ onMounted(() => {
width: 25rem;
height: calc(100vh - 7rem);
overflow-y: hidden;
background-color: #f4f4f4;
background-color: #eaeaea;
}
.right {
flex: 1;
width: calc(100% - 25rem);
padding: 10px;
height: calc(100vh - 7rem);
background-color: #e4e4e4;
background-color: #f9f9f9;
display: flex;
flex-direction: row;
}
Expand Down
6 changes: 3 additions & 3 deletions web/src/DataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useToast } from "primevue/usetoast";

export const useDataStore = defineStore('jarvis', {
state: () => ({
version: '0.6.0',
version: '0.6.2',
config: {
api_server_url: "http://localhost:8123",
api_server_token: "",
Expand All @@ -30,8 +30,8 @@ state: () => ({
// we need to know which service is used
// for ollama, vllm,
"service_type": "openai",
"name": "OpenAI 4o mini",
"model_name": "gpt-4o-mini",
"name": "OpenAI 4o",
"model_name": "gpt-4o",
"endpoint": "https://api.openai.com/v1/chat/completions",
"enabled": true,
"api_key": ""
Expand Down
11 changes: 11 additions & 0 deletions web/src/components/HeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ async function onTaxonomyFileChange(e) {
}
async function onPromptFileChange(e) {
// check if taxonomy are loaded
if (!store.taxonomy_file) {
toast.add({
severity: 'error',
summary: 'Error',
detail: 'Please load the taxonomy file first',
life: 3000
});
return;
}
let { fh, file } = await fs_helper.fsOpenFile({
types: [{
description: 'Text File',
Expand Down
1 change: 1 addition & 0 deletions web/src/components/ItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const items = ref([
overflow: hidden;
width: 100%;
text-overflow: ellipsis;
line-height: 0.9rem;
}
.current-item {
background-color: #7abdf3;
Expand Down
22 changes: 18 additions & 4 deletions web/src/components/SettingPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const toggle = (event) => {

<TabPanel value="chatbot">
<template v-for="model in store.config.ai_models">
<div class="mb-3">
<div class="mb-4">
<p class="m-0 section">
<i class="fa fa-cube"></i>
{{ model.name }}
Expand All @@ -223,8 +223,15 @@ const toggle = (event) => {
</div>
<div class="mb-2">
<InputText v-model="model.endpoint"
style="width: 100%;"
class="w-100"/>
class="w-full"/>
</div>

<div class="label">
Model Name
</div>
<div class="mb-2">
<InputText v-model="model.model_name"
class="w-full"/>
</div>

<div class="label w-full">
Expand Down Expand Up @@ -277,7 +284,8 @@ const toggle = (event) => {

<div>
<span @click="onClickDeleteKeyword(keyword_index)"
class="text-red-100 cursor-pointer">
title="Delete this keyword"
class="text-red-100 cursor-pointer delete-link">
<i class="fa fa-trash"></i>
</span>
</div>
Expand Down Expand Up @@ -375,4 +383,10 @@ const toggle = (event) => {
background-color: #f8f8f8;
font-weight: bold;
}
.delete-link {
font-size: small;
}
.delete-link:hover {
color: red;
}
</style>

0 comments on commit 8a4f37a

Please sign in to comment.