mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-31 15:48:51 +01:00
Minor fixes: tokenizer, default Bing toneStyle, SiblingSwitch (#348)
* fix: tokenizer will count completion tokens correctly, remove global var, will allow unofficial models for alternative endpoints * refactor(askBingAI.js, Settings.jsx, types.ts, cleanupPreset.js, getDefaultConversation.js, handleSubmit.js): change default toneStyle to 'creative' instead of 'fast' for Bing AI endpoint. * fix(SiblingSwitch): correctly appears now style(HoverButtons.jsx): add 'active' class to hover buttons
This commit is contained in:
parent
791b515937
commit
4beb06aa4b
10 changed files with 125 additions and 78 deletions
|
|
@ -16,6 +16,15 @@ export type TExample = {
|
|||
output: string;
|
||||
};
|
||||
|
||||
export enum EModelEndpoint {
|
||||
azureOpenAI = 'azureOpenAI',
|
||||
openAI = 'openAI',
|
||||
bingAI = 'bingAI',
|
||||
chatGPT = 'chatGPT',
|
||||
chatGPTBrowser = 'chatGPTBrowser',
|
||||
google = 'google'
|
||||
}
|
||||
|
||||
export type TSubmission = {
|
||||
clientId?: string;
|
||||
context?: string;
|
||||
|
|
@ -42,15 +51,6 @@ export type TSubmission = {
|
|||
frequence_penalty?: number;
|
||||
};
|
||||
|
||||
export enum EModelEndpoint {
|
||||
azureOpenAI = 'azureOpenAI',
|
||||
openAI = 'openAI',
|
||||
bingAI = 'bingAI',
|
||||
chatGPT = 'chatGPT',
|
||||
chatGPTBrowser = 'chatGPTBrowser',
|
||||
google = 'google'
|
||||
}
|
||||
|
||||
export type TConversation = {
|
||||
conversationId: string;
|
||||
title: string;
|
||||
|
|
@ -157,7 +157,7 @@ export type TSearchResults = {
|
|||
pageNumber: string;
|
||||
pageSize: string | number;
|
||||
pages: string | number;
|
||||
filter: {};
|
||||
filter: object;
|
||||
};
|
||||
|
||||
export type TEndpoints = {
|
||||
|
|
@ -175,11 +175,11 @@ export type TUpdateTokenCountResponse = {
|
|||
count: number;
|
||||
};
|
||||
|
||||
export type TMessageTreeNode = {};
|
||||
export type TMessageTreeNode = object;
|
||||
|
||||
export type TSearchMessage = {};
|
||||
export type TSearchMessage = object;
|
||||
|
||||
export type TSearchMessageTreeNode = {};
|
||||
export type TSearchMessageTreeNode = object;
|
||||
|
||||
export type TRegisterUser = {
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue