-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new models for gemini translation (#571)
* perf: update gemini package * feat: add new models for gemini translation * fix: type in openai service * fix: type in ezconstkey annotation * fix: type in a few files * perf: update chatgpt link * fix: build error * perf: remove gemini keys in ezschemeparser * format: add back empty line * perf: rename opanaiusagestatus to serviceusagestatus * perf: remove queryTextType since gemini supports all type * perf: update xcstring state * perf: enable LLMStreamService to change models quickly * fix: typo in gemini service * perf: support dictionary and sentence query * perf: implement results handle for gemini * docs: update sponsor list * perf: remove unused annotation Co-Authored-By: Tisfeng <[email protected]> * perf: remove unused code * perf: implement systemInstruction and role/model prompt * perf: remove redundant code * fix: gemini stream ui * perf: move promptContent to extension GeminiService * perf: optimize usage of handleResult * perf: add bool argument to opt out LLM systemPrompt * fix: use dict system prompt when querying a word * perf: add dynamic variable for gemini available models * refactor: replace all AI const stored keys with dynamic variables * fix: gemini-1.0-pro model cannot use system instruction * perf: change system prompt to user prompt for gemini-1.0-pro model --------- Co-authored-by: tisfeng <[email protected]> Co-authored-by: Tisfeng <[email protected]>
- Loading branch information
1 parent
927d837
commit 8420e58
Showing
16 changed files
with
522 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.