Commit Graph

533 Commits

Author SHA1 Message Date
Cohee c820d5f56a Reformat code 2024-08-28 21:20:21 +03:00
M0cho 268aeb0ae5 Support gemini-1.5-exp-0827 2024-08-28 08:24:04 +09:00
Cohee c45e212b31 Fix negative penalties 2024-08-27 09:19:05 +00:00
Cohee e8de36a0d0 Cohere: limit penalties 2024-08-27 12:03:40 +03:00
Cohee 662e29911c Fix default model when loading preset 2024-08-26 17:34:54 +03:00
Cohee 7d4b3e0800 Use J1.5 Large by default 2024-08-26 12:11:29 +03:00
Cohee 5fc16a2474 New AI21 Jamba + tokenizer 2024-08-26 12:07:36 +03:00
Yokayo 383d46fe4d Work on tl 2024-08-26 01:39:56 +07:00
Cohee 06e3d5f8de Rename MakerSuite => AI Studio 2024-08-21 21:00:17 +03:00
err d02677feec
enable vision for chatgpt-4o-latest 2024-08-17 17:07:29 +02:00
Cohee bc7ac12317 New ChatGPT model 2024-08-14 20:31:25 +03:00
Cohee 2ef9d374ec Chat Completion: Don't insert group nudge when impersonating
Closes #2588
2024-08-11 20:55:59 +03:00
Cohee 8df27254fd
Merge pull request #2640 from edk208/release
Adding Block Entropy API endpoints for chat, image, and video generation
2024-08-11 16:19:14 +03:00
Cohee fcfa15a5ad Add model to presets. Fix restoration on app load 2024-08-11 16:18:24 +03:00
Edward Kim 41247740b1 fixed model in max context 2024-08-10 22:00:26 -04:00
Edward Kim 88ada0f67d fixed ordering in image generation source, and max token length for llm models 2024-08-10 21:55:52 -04:00
splitclover dcfeb837a8 Add await to events 2024-08-10 00:44:01 +02:00
splitclover 754752c80a Added chat completion import/export events 2024-08-09 23:49:18 +02:00
Edward Kim b9857eb315 Added block entropy endpoints for chat and image 2024-08-08 00:08:03 -04:00
Cohee 32c48cf9fa Fix default value for OpenRouter Top A 2024-08-07 20:58:19 +03:00
Cohee c76306d461 Restore CC OpenRouter providers on load 2024-08-06 11:33:56 +03:00
Succubyss 366070adee ultra re-addition (just in case), fixed system prompt line 2024-08-02 15:26:15 -05:00
Cohee 7e8b7e128e Sync change with oai_settings 2024-08-02 22:51:29 +03:00
Succubyss c291564925 gemini: max context, selection revisions, ultra removal 2024-08-02 14:35:48 -05:00
Cohee 4b61bcc741
Merge pull request #2600 from Succubyss/gemini-1.5-pro-exp-0801 2024-08-02 21:39:19 +03:00
Succubyss 3f6e4fabb8 gemini updates 2024-08-02 13:30:54 -05:00
Cohee 7b9eb97c7f Support image inlining for 01.ai 2024-08-01 01:15:13 +03:00
Cohee 21d074aa46 Update default Chat Comp models to better ones 2024-08-01 00:51:11 +03:00
Cohee 2871f309c9
Merge pull request #2592 from Succubyss/gemini-maxtemp
Update MakerSuite temperature caps
2024-08-01 00:46:50 +03:00
Cohee 101616c422 Update Perplexity models 2024-08-01 00:43:21 +03:00
Succubyss 4561eca684 correct MakerSuite max temps 2024-07-31 16:20:45 -05:00
Cohee d31e44dec8 Chat Completion: split "none" and "default" names behavior 2024-07-25 20:13:06 +03:00
Cohee e49da60bda New mistral large model 2024-07-24 20:19:57 +03:00
Cohee cc0ae2a567 Add llama 3.1 models for groq 2024-07-23 20:25:23 +03:00
Cohee 5f0e74bd56 Rename PHI/aux UI fields 2024-07-21 14:29:13 +03:00
Cohee 5f2a73ac9f Expose "Allow fallback providers" for OpenRouter 2024-07-19 23:34:16 +03:00
Cohee 4468bf5034 Explicitly add to image inlining list 2024-07-18 22:54:44 +03:00
Cohee b9e03e9cb1 Add Mistral Nemo and Codestral Mamba models 2024-07-18 16:37:12 +00:00
Cohee 345bae4fc0 Fix unknown relative extension injects not working in Chat Completion 2024-07-16 23:29:16 +03:00
Cohee 3a0b4ec41d Update popup usage 2024-07-12 21:14:36 +03:00
Cohee 63ecf3b398 Remember proxy without confirmation 2024-07-12 21:11:06 +03:00
Cohee 22831d5517 Merge branch 'staging' into proxy-confirm 2024-07-12 21:05:45 +03:00
Cohee 3809d3d4ac Add import confirmation 2024-07-12 00:15:42 +03:00
Cohee a64a2dd83e Export confirmation of sensitive preset fields 2024-07-12 00:00:39 +03:00
Wolfsblvt 63a0ebb885 Move openai slash commands to init function 2024-07-11 22:43:25 +02:00
LenAnderson 47eb12750d undo no chat names 2024-07-10 21:47:42 -04:00
LenAnderson aebfefb3a2 ask user to confirm proxy connections 2024-07-10 20:54:09 -04:00
Cohee 00de522a64 Add None continue postfix for chat completion 2024-07-08 20:33:37 +03:00
fizzAI f6a50fa0cd Add Gemma 2 9b to available Groq models 2024-07-07 20:36:40 -04:00
Cohee a6eec7ba1a Fix 01.ai model nullifying on load 2024-07-06 15:30:21 +03:00
Cohee 0ca880bf60 Check for whitespace-only WI format 2024-07-02 20:32:46 +03:00
Cohee 2293828f8e Ditto, for chat completion 2024-06-28 08:14:38 +00:00
Cohee cf56bfb6a9 Add 01.AI as a chat completion source 2024-06-28 00:51:09 +03:00
Cohee de7a5085b1 Partial revert of class/id distinction 2024-06-23 19:18:40 +03:00
Cohee f2d64a7d08 Merge branch 'staging' into modelsearch 2024-06-23 19:05:00 +03:00
Harrison 9b17f4e0c0 add search functionality for models 2024-06-24 00:47:06 +10:00
Wolfsblvt 461b1a9d87 Even more enum refactorings (not done yet)
- Add common enum icons
- enum def for existing enum types, with color description
2024-06-20 20:33:45 +02:00
Wolfsblvt 7f7ecdcca8 Merge branch 'staging' into slash-command-enums 2024-06-17 07:06:26 +02:00
Wolfsblvt 66d609c35f Several million refactoring of existing slash commands with enums (really) 2024-06-17 07:04:10 +02:00
Wolfsblvt 6f7ef25369 Rework slash command enum values pt.2
- Fix jsconfig module resolution for imports in frontend scripts
- Add file with common slash command enum values
2024-06-17 03:30:52 +02:00
Cohee 1a061c6ae5 Skip connect on max context unlock via preset 2024-06-16 22:16:47 +03:00
Cohee c7dc63200a Merge branch 'staging' into ruRuNew 2024-06-16 15:56:07 +03:00
Cohee 339428a4e9 #2379 Move continue prefill to end of completion 2024-06-15 18:00:09 +03:00
Cohee 405fc1458c Use ext. macros in prompt manager 2024-06-15 13:15:52 +03:00
Yokayo 84ee968ab4 More localizable text 2024-06-12 16:30:32 +07:00
Cohee 76c35d269b Calculate number of messages after event 2024-06-06 00:44:59 +03:00
Cohee ff241dd0a9 Add events for completed prompts 2024-06-06 00:23:12 +03:00
Cohee f27a83ef73 Restrict function calling to non-streaming only 2024-05-29 01:11:40 +03:00
Cohee b833f36c75 Function calling for Groq 2024-05-29 01:10:18 +03:00
Cohee 309eb80748 Function calling for Claude and OpenRouter 2024-05-29 00:56:55 +03:00
Cohee cb381595f9 Function calling for Mistral 2024-05-25 17:31:40 +03:00
Cohee fa6fc45e6f Function calling for Cohere 2024-05-25 17:09:47 +03:00
Cohee a20c6bb01e Extension framework for function tool calling 2024-05-25 15:31:57 +03:00
daiaji 66454bb711
Add reverse proxy support to Google MakerSuite to allow some Google MakerSuite URLs to no longer be hardcoded with domain names. (#2307)
* Add reverse proxy support to Google MakerSuite.

* Remove hardcoded URLs for some Google MakerSuite API calls.

* Don't send real key to alt.endpoint

* Fix for image captioning

* Fix key validation

* +fix key check for mistral

* Fix caption key validation

* Fix tokenization endpoint use

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-24 21:38:29 +03:00
Cohee 4d161768c0 New Cohere model 2024-05-24 17:17:21 +03:00
Succubyss c822b9e2da Implements Assistant Impersonation Prefill 2024-05-16 21:59:58 -05:00
Cohee 7289ed72f8 #2240 Yes, I can add new maker suite model 2024-05-15 23:31:09 +03:00
Cohee caf236d60a Add event for chat completion settings ready 2024-05-14 22:34:40 +03:00
Cohee 49cb8daf7d Add inline image control 2024-05-14 01:08:31 +03:00
based 67610b9f7f gpt-4o 2024-05-14 04:37:36 +10:00
Len 1d75b98393
STscript Parser Rewrite (#1965)
* set isForced to true on input

* make floating auto-complete follow horizontal scrolling

* add callable closure vars

* changes to /let and /var for callable closures

* fix error message

* fix scope for closure arguments

* if should return the pipe result from closures

* use /run to call closures and no arguments on immediate closures

* throw exception from QRs window-function if no match

* when to show autocomplete vs info only

* autocomplete positioning

* autocomplete styling

* add theming to autocomplete (theme, dark, light)

* improve autocomplete show/hide logic and editor selection

* use blur tint color instead of chat tint color and use blur setting

* cleanup and docs

* use scope macros for QR args

* add enter to select autocomplete

* fix no executor found

* cleanup and comment

* fix alias list in help string

* fallback to empty string piped value if null or undefined

* fix typo

* blur textarea on ctrl+enter execute (and refocus after)

* stop executeSlashCommand if parser throws

* move /let and /var callbacks into functions

* switch textarea to monospace when value starts with slash

* add double pipe a pipe breaker

* fix /? slash

* remove some logging

* add "/:name" as shorthand for "/run name" after all

* move shit around

* fix error message

* use testRunShorthandEnd

* use parseQuotedValue and parseValue to determine name for "/:"

QR labels and set names can include spaces

* add some adjustments to make autocomplete work properly

some hint in there about "/:" would still be nice

* add autocomplete style  selector

* only strip quotes from subcommand if they are at both ends

* fix JSDoc

* escaping

* allow open quotes on dry run

* throwing shit at the wall for /: autocomplete

* escapes only for symbols

* clean up autocomplete

* improve performance

* fix scope macros

* remove unescaping of pipes

* fix macros in scope copy

* fix "/? slash"

* don't run parser for getNameAt if text has not changed

* fix options filter

* re-enable blur listener

* restore selection on non-replace select

* fix for escaping first character of value

* add support for {{pipe}} and {{var::}} closures

* add index support to var macro

* add scoped var macro to macro help

* more escape fixes

* reduce autocomplete render debounce

* cleanup

* restore old escape handling and parser flag for strict escaping

* fix "no match" autocomplete message

* add dummy commands for comments and parser flag

* fix type annotations

* somewhat safer macro replacements

* fix autocomplete select on blank / "no match"

* fix cutting off handled part in substitution

* add parser flag REPLACE_GETVAR

Replaces all {{getvar::}} and {{getglobalvar::}} macros with {{var::}}.
Inserts a series of command executors before the command with the macros that:
- save {{pipe}} to a var
- call /getvar or /getglobalvar to get the variable used in the macro
- call /let to save the retrieved variable
- return the saved {{pipe}} value

This helps to avoid double-substitutions when the var values contain text that could be interpreted as macros.

* remove old parser

* fix send on enter when no match

* deal with pipes in quoted values (loose escaping)

* add default parser flags to user settings

* allow quoted values in unnamed argument

* set parser flag without explicit state to "on"

* add click hint on parser error toast

* dirty more detailed cmd defs

* remove name from unnamed arg

* move autocomplete into class and floating with details

* replace jQuery's trigger('input') on #send_textarea with native events because jQuery does not dispatch the native event

* fix ctrl+space

* fix arrow navigation

* add comments

* fix pointer block

* add static fromProps

* fix up dummy commands

* migrate all commands to addCommandObject

* remove commented comment command

* fix alias in details

* add range as argument type

* switch to addCommandObject

* switch to addCommandObject

* fix height

* fix floating details position on left

* re-enable blur event

* use auto width for full details on floating autocomplete

* auto-size floating full details

* fix typo

* re-enable blur listener

* don't prevent enter when selected item is fully typed out

* add autocomplete details tooltips

* add language to slash command examples

* move makeItem into option and command and fix click select

* use autocomplete parts in /? slash

* fix alias formatting

* add language to slash command examples

* fix details position on initial input history

* small screen styles

* replace registerSlashCommand with detailed declarations

* put name on first line

* add missing returns

* fix missing comma

* fix alias display in autocomplete list

* remove args from help string

* move parser settings to its own section

* jsdoc

* hljs stscript lang

* add hljs to autocomplete help examples

* add missing import

* apply autocomplete colors to stscript codeblocks (hljs)

* add fromProps

* cache autocomplete elements

* towards generic autocomplete

* remove unused imports

* fix blanks

* add return types

* re-enable blur

* fix blank check

* Caption messages by id

* add aborting command execution

* fix return type

* fix chat input font reset

* add slash command progress indicator

* add missing return

* mark registerSlashCommand deprecated

* why??

* separate abort logic for commands

* remove parsing of quoted values from unnamed arg

* add adjustable autocomplete width

* revert stop button pulse

* add progress and pause/abort to QR editor

* add resize event on autocomplete width change

* add key= argument to all get vars

* refactoring

* introduce NamedArgumentAsignment

* add TODOs

* refactoring

* record start and end of named arg assignment

* refactoring

* prevent duplicate calls to show

* refactoring

* remove macro ac

* add secondary autocomplete and enum descriptions

* add syntax highlighting to QR editor

* add enum descriptions to /while

* add /let key=... to scope variable names

* add unnamed argument assignment class and unnamed argument splitting

* fix QR editor style

* remove dash before autocomplete help text

* add autocomplete for unnamed enums

* fix remaining dom after holding backslash

* fix for unnamed enums

* fix autocomplete for /parser-flag

* add parser-flag enum help

* fix type annotations

* fix autocomplete result for /:

* add colored autocomplete type icons

* collapse second line autocomplete help if empty

* mark optional named args in autocomplete

* fix when what

* remove duplicate debug buttons

* dispatch input on autocomplete select

* prevent grow from editor syntax layer

* add auto-adjust qr editor caret color

* remove text-shadow from autocomplete

* join value strings in /let and /var

* add /abort syntax highlight

* fix attempting secondary result when there is none

* rename settings headers and split autocomplete / stscript

* add parser flag tooltips

* add tooltips to chat width stops

* fix typo

* return clone of help item

* fix enum string

* don't make optional notice for autocomplete arguments smaller

* avoid scrollbar in chat input

* add rudimentary macro autocomplete

* strip macro from helptext

* finally remove closure delimiters around root

* cleanup

* fix index stuff for removed closure delimiters

* fix type hint

* add child commands to progress indicator

* include sub-separator in macro autocomplete

* remove all mentions of interruptsGeneration and purge

* remove unused imports

* fix syntax highlight with newline at end of input

* cleanup select pointer events

* coalesce onProgress call

* add regex to STscript syntax highlighting

* fix closure end

* fix autocomplete type icon alignment

* adjustments for small screens

* fix removing wrong element

* add missing "at=" arg to /sys, /comment, /sendas

* add font scale setting for autocomplete

* add target=_blank for parser flag links

* fix for searching enums

* remove REGEXP_MODE from hljs
just causes trouble

* fix autocomplete in closures

* fix typo

* fix type hint

* Get rid of scroll bar on load

* Add type hint for /send name argument. Fix 'at' types

* Add 'negative' arg hint to /sd command

* reenable blur event

* Allow /summarize to process any text

* Compact layout of script toggles

* Expand CSS by default

* fix double ranger indicator and adjust to narrow container

* make custom css input fill available vertical space

* reduce scroll lag

* use default cursor on scrollbar

* Clean-up module loading in index.html

* fix tab indent with hljs

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-12 22:15:05 +03:00
Cohee c73bfbd7b0 Safari bruh moment 2024-05-06 21:21:03 +03:00
Cohee 7063fce2af Selectable openrouter providers 2024-05-06 19:26:20 +03:00
Cohee 181b5aff97 Add Groq as chat completion source 2024-05-05 18:53:12 +03:00
Cohee 31f1b34911 Add Perplexity L3-sonar models 2024-05-05 18:21:58 +03:00
Cohee 5197809d6b Add global variables to TypeScript definitions. Fix some errors 2024-05-04 20:44:41 +03:00
Cohee 7bc87b6e28 8x22b is supposed to have 64k tokens 2024-05-03 21:36:41 +03:00
sirius422 389ee7917f Add json extension to exported oai and LogitBias presets 2024-04-26 23:07:25 +08:00
Cohee b3bbec83b6 Merge branch 'staging' into neo-server 2024-04-20 02:56:05 +03:00
Cohee 2a2a63c52c Add Perplexity as Chat Completion source 2024-04-20 00:09:38 +03:00
Cohee 47a06c14d9 Merge branch 'staging' into neo-server 2024-04-17 21:59:30 +03:00
Cohee 8a4b675143 Disable-able chat history and examples 2024-04-17 21:23:06 +03:00
Cohee 9a1ea7f226 Implement Data Bank vectors querying 2024-04-17 02:09:22 +03:00
Cohee 8546490bcc Improve Scale JWT error handling 2024-04-16 18:59:01 +03:00
Cohee 71041ec764 Properly unset temp cap for all Chat Comp sources 2024-04-15 02:00:56 +03:00
Cohee 022c180b62 Lint and clean-up 2024-04-15 00:39:15 +03:00
Cohee 4a553e1fc8 Merge branch 'release' into staging 2024-04-15 00:26:43 +03:00
Cohee 1e088ac124 Fix /proxy command to return a name 2024-04-14 21:31:59 +03:00
Cohee 607e85639c Code clean-up 2024-04-14 19:31:38 +03:00
Ondřej Sakala 5ce625fb6b added a web-search toggle for Cohere API 2024-04-14 02:25:11 +02:00