Commit Graph

21 Commits

Author SHA1 Message Date
an-lee
9deed980ba escape {} in prompt 2024-10-13 12:01:15 +08:00
an-lee
5fbe381038 escape { in prompt 2024-10-13 11:58:28 +08:00
an-lee
d96c9ff773 Refactor Chat (#1108)
* modify chat table & migrate

* refactor layout

* update layout

* actions for chats & agents

* refactor chat form

* refactor chat form

* update chat form

* rename

* refactor types & locales

* refactor tts engine

* refactor

* fix config

* refactor chat form

* refactor chat member form

* fixing

* refactor ask agent

* chat in conversation

* fix chat message update

* may update chat member

* update chat member from message

* refacto group propmt

* chat member gpt settings

* update ui

* more config for chat

* add locales

* update chat agent form

* add locales for agent form

* update UI

* auto reply for text input

* update chat

* update chat input

* rename colomns

* update chat

* udpate agent message

* add chat member

* add/remove chat member

* fix chat member

* refactor

* auto update chat name

* fix chat update

* refactor chat column

* fix chat

* add agent loading

* use fresh new prompt when ask agent

* add chat forwarder

* refactor chat

* fix

* add copilot

* toggle copilot

* add copilot chat

* avoid open the same chat at the same time

* update copilot header

* add agent introduction in the first place of chat

* rename column

* update style

* refactor

* invoke all agents in group after asking

* chat sidebar collopse

* may select chat in copilot

* update ui

* new chat from agent

* upgrade deps

* refactor chat & chatAgent

* add limit for chat member create

* update chat form

* update db & migration

* fix up

* fix group chat

* fix panel warning

* display chat agent type

* tts message

* fit tts agent

* refactor

* chat fowarder

* update UI

* setup default values for tts agent

* fix chat member add/remove

* edit tts agent

* display chat date

* Fix UI

* add system message

* refactor

* fix hook

* refactor

* touch chat&agent when new message created

* fix auto reply

* migrate conversation to chat

* add migrate api

* fix migrate

* update migrate

* refactor

* refactor

* refactor

* fix delete agent

* add hotkey for copilot

* fix bugs

* upgrade deps

* refactor tts hook

* stop auto playback when azure transcribed

* refactor

* clean up

* fix UI

* fix conversation migrate

* handle error

* update model

* declare types

* audo backup db file when started

* fix db backup

* refactor db migration

* fix UI

* refactor

* fix chat auto update name

* fix authorization lost when hot reload

* refactor

* refactor

* fix tts form

* keep agent avatar up to date

* clean code
2024-10-09 16:57:32 +08:00
an-lee
54977405cb Feat add chat suggetion helper (#1006)
* use recorder config

* add message timestamp in prompt

* refactor

* add chat suggest

* update prompt

* update style

* update style

* update ux

* refactor suggestion button

* fix chat input

* add hotkey for record

* refactor agent reply

* fix `replaceAll`

* hotkey for continue

* refactor chat list
2024-08-22 18:39:22 +08:00
an-lee
1e0297f8f7 Feat: voice chat with AI (#898)
* add chats page

* add basic layout and types

* add chat context

* add more components

* add agent form

* add destroy button

* update types

* add models

* update chat agent

* create chat agent

* refactor

* refactor

* add chats CRUD

* notify for chat db update

* refactor

* typo

* chat CRUD

* refactor

* clean code

* add vad

* may record

* may transcribe recording

* update models

* edit chat member

* chat form update

* refactor

* fix chat form

* transcribe in chat

* create chat session

* may create chat session

* update

* update chat

* locale

* refactor

* refactor

* update

* update

* update

* refactor chat

* Fix

* fix

* update prompt

* refactor

* make it works

* update agent message actions

* may assess recording

* fix chat message recording assess

* refine

* refactor

* refactor

* may delete message

* may edit message

* update locales

* fix package issue in Mac

* add destroy callbacks

* fix chats CRUD

* update chats

* add quickstart

* update locales

* refactor

* refactor prompt

* remove console.log

* update

* fix locales
2024-08-13 16:09:44 +08:00
an-lee
d8231ca97c Feat: Settings for learning lang (#641)
* refactor settings

* refactor constants

* add settings for native/learning language

* setup langugage for transcribe

* use 2 letter code for echogarden

* AI commands support multiple language

* update languages constant

* fix sentry error

* fix context menu

* show camdict when only learning English

* add en-GB

* recording assess support multiple languages

* fix ai command

* refactor
2024-05-29 15:13:52 +08:00
an-lee
89faf35483 refactor ai lookup 2024-05-15 17:06:10 +08:00
an-lee
6a59d9883e fix default engine setting validation 2024-05-15 16:05:47 +08:00
an-lee
61c76006fd Feat: more settings for ai engine & models (#611)
* may setup gpt ai engine & model

* ai models setting works

* update openai setting

* validate engine setting before save

* fail fast

* clean code

* refactor gpt preset
2024-05-15 15:52:07 +08:00
an-lee
49dabc89a3 Update constants from api (#607)
* fix caption ipa display

* fetch gpt/tts providers from API

* fetch remote gpt presets

* update constants

* fix conversavtion save

* refactor ipa convert

* fetch ipa mapping from api

* fix ipa mark

* fix constant

* validate camdict pron audio src
2024-05-14 20:37:51 +08:00
an-lee
0e8de4881c Feat: lookup in context menu (#595)
* add lookup widget

* add lookup result

* refactor

* refactor

* add translate widget

* make translate widget works

* refactor locales

* typo

* remove deprecated component

* refactor lookup prompt
2024-05-10 11:16:38 +08:00
an-lee
69a6f721ca Feat summarize audio topic (#594)
* refactor ai commands

* fix json command

* fix extract story command

* may summarize topic for audio
2024-05-09 10:54:11 +08:00
an-lee
7cc8e0bf7b use gpt-4-turbo as default (#515) 2024-04-12 10:25:35 +08:00
an-lee
071d80060d Fix punctuation (#477)
* add punctuate command

* check punctuation before alignment
2024-04-02 14:43:15 +08:00
an-lee
7233e0d4a8 setup max retries for AI request 2024-03-25 11:09:10 +08:00
an-lee
63ce2206e1 Fix bugs (#436)
* fix recording style

* refine prompt
2024-03-25 10:02:07 +08:00
an-lee
6dac70daa4 Feat: improve player (#429)
* tune pitch params

* may generate meaning groups

* auto group words

* update caption style

* refactor caption

* add analysis

* use conversation to analyze

* fix caption tabs

* add command component
2024-03-21 11:10:00 +08:00
an-lee
ae775e91ea Fix: ensure AI command model support json response_format (#365)
* ensure AI command model support json response_format

* update models list

* update tts model list
2024-02-28 22:32:48 +08:00
an-lee
60503aec35 Upgrade deps (#329)
* upgrade deps

* fix langchain warnings

* add test for login
2024-02-19 17:39:28 +08:00
an-lee
757c2af85c Feat: use default ai config (#167)
* fix locale

* use openai config if any
2024-01-19 17:24:12 +08:00
an-lee
5efc5fc1db Feat: AI commands (#145)
* upgrade deps

* add extract command

* add lookup.command

* update lookup command

* fix locals

* may lookup one by one

* update lookup method

* add translate command

* cache translation by default

* open ai default settings

* use openai config in context

* refactor

* genreate ipa

* update UI

* handle ai generate fail
2024-01-19 16:52:49 +08:00