Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: frontend multi models support #804

Merged
merged 84 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
2197f97
feat: add model-selector
zxhlyh Aug 1, 2023
63cd9fd
feat: add model-card
zxhlyh Aug 1, 2023
149a59f
Merge branch 'main' into feat/multi-models
zxhlyh Aug 1, 2023
93754fd
feat: model-item
zxhlyh Aug 1, 2023
647432d
feat: model-modal
zxhlyh Aug 1, 2023
76e0c93
Merge branch 'main' into feat/multi-models
iamjoel Aug 2, 2023
6bf39c0
fix: some style
zxhlyh Aug 2, 2023
89c59e3
feat: add select tone icons
iamjoel Aug 2, 2023
eca9d86
fix: data structure
zxhlyh Aug 3, 2023
a060a3b
Merge branch 'main' into feat/multi-models
iamjoel Aug 4, 2023
74594a8
fix: some style
zxhlyh Aug 4, 2023
d60376b
fix: some style
zxhlyh Aug 4, 2023
fbb2f81
feat: tone style and other tity style
iamjoel Aug 4, 2023
243edc7
feat: not open hide tone
iamjoel Aug 4, 2023
a63ed9d
fix: key warining
iamjoel Aug 4, 2023
e40dad7
edit shadow style
zxhlyh Aug 7, 2023
42f5989
feat: input validate
zxhlyh Aug 7, 2023
e11267e
Merge branch 'main' into feat/multi-models
zxhlyh Aug 7, 2023
61ceffd
edit setting-modal style
zxhlyh Aug 7, 2023
b7dbece
edit setting-modal style
zxhlyh Aug 7, 2023
71b822b
fix some style
zxhlyh Aug 7, 2023
fb66c78
feat: apikey not set ui
iamjoel Aug 8, 2023
7a18370
edit data structure
zxhlyh Aug 8, 2023
675c791
edit data structure
zxhlyh Aug 8, 2023
d59501b
feat: i18n and toggle is cloud
iamjoel Aug 8, 2023
5ff3f19
delete useless code
zxhlyh Aug 8, 2023
b5bc3a4
feat: setting apikey
iamjoel Aug 8, 2023
f0cbf8e
fix some
zxhlyh Aug 8, 2023
7583ce1
feat: fetch model params and switch
iamjoel Aug 9, 2023
b51f787
add provider list api
zxhlyh Aug 9, 2023
74a2ddd
feat: params value sync
iamjoel Aug 9, 2023
1d7339f
feat: detect is show api key info
iamjoel Aug 9, 2023
81af0cf
feat: show trail info
iamjoel Aug 9, 2023
d9819da
fix: api
zxhlyh Aug 9, 2023
2494dd5
fix: api
zxhlyh Aug 9, 2023
1a02fc0
fix: api
zxhlyh Aug 9, 2023
b52a1bc
fix
zxhlyh Aug 10, 2023
7e905e1
fix type
zxhlyh Aug 10, 2023
a4755bd
fix
zxhlyh Aug 10, 2023
9500ef1
feat: model select can render
iamjoel Aug 10, 2023
3d8a7fc
add pay
zxhlyh Aug 10, 2023
061642f
fix
zxhlyh Aug 10, 2023
ddf1d36
fix text
zxhlyh Aug 10, 2023
9b35327
fix: model list struct
iamjoel Aug 10, 2023
7377a65
fix: geticon robust
iamjoel Aug 10, 2023
3f60786
fix
zxhlyh Aug 10, 2023
199eb39
fix
zxhlyh Aug 10, 2023
4d104bf
fix
zxhlyh Aug 10, 2023
2240463
merge main
zxhlyh Aug 10, 2023
4aab7f1
fix: edit initvalue
zxhlyh Aug 10, 2023
50abc30
feat: model select support get and set value
iamjoel Aug 10, 2023
5b62a9c
fix: params change bug and azure icon
iamjoel Aug 10, 2023
98f9424
fix: self hosted version
zxhlyh Aug 10, 2023
d7f562c
feat: dopdown ui
iamjoel Aug 10, 2023
dc74b08
fix free token
zxhlyh Aug 10, 2023
1025677
fix modal
zxhlyh Aug 10, 2023
2954f6e
feat: universal chat support choose model
iamjoel Aug 10, 2023
305b36b
feat: handle model icon
iamjoel Aug 10, 2023
3454b8f
fix validate api key
zxhlyh Aug 10, 2023
660b118
fix delete provider model
zxhlyh Aug 10, 2023
8f0a8da
feat: model name and product name i18n
iamjoel Aug 10, 2023
38d645a
fix: model name and provide name show
iamjoel Aug 10, 2023
8cd1524
feat: model select support search
iamjoel Aug 10, 2023
0e1aab0
fix modal title
zxhlyh Aug 10, 2023
c7d37c8
add select default model
zxhlyh Aug 10, 2023
7c7a525
chore: handle css problem
iamjoel Aug 10, 2023
cd7f84b
fix
zxhlyh Aug 10, 2023
c3cfc72
chore: change api call
iamjoel Aug 10, 2023
5fab406
fix: param value precision and out of range
iamjoel Aug 11, 2023
2283d6b
fix: edit modal
zxhlyh Aug 11, 2023
e50dc55
add wenxin
zxhlyh Aug 11, 2023
d960677
add wenxin model icon
zxhlyh Aug 11, 2023
ac6ce1a
add wenxin model icon
zxhlyh Aug 11, 2023
8d96c16
fix pay url
zxhlyh Aug 11, 2023
84989ef
fix
zxhlyh Aug 11, 2023
ef38791
fix
zxhlyh Aug 11, 2023
d1162f5
add token url
zxhlyh Aug 11, 2023
39aed86
fix: no max token handle and no params handle
iamjoel Aug 11, 2023
9a137aa
fix: prev no max token current set max token
iamjoel Aug 11, 2023
b3884f7
fix
zxhlyh Aug 11, 2023
50f4ff7
fix
zxhlyh Aug 11, 2023
4f86589
fix: ce version cash
iamjoel Aug 11, 2023
ed6605e
fix: ce version cash
iamjoel Aug 11, 2023
13dfc60
feat: not choose a model can not start a conversation
iamjoel Aug 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react'
import WelcomeBanner, { EditKeyPopover } from './welcome-banner'
import { EditKeyPopover } from './welcome-banner'
import ChartView from './chartView'
import CardView from './cardView'
import { getLocaleOnServer } from '@/i18n/server'
import { useTranslation } from '@/i18n/i18next-serverside-config'
import ApikeyInfoPanel from '@/app/components/app/overview/apikey-info-panel'

export type IDevelopProps = {
params: { appId: string }
Expand All @@ -16,7 +17,8 @@ const Overview = async ({
const { t } = await useTranslation(locale, 'app-overview')
return (
<div className="h-full px-16 py-6 overflow-scroll">
<WelcomeBanner />
{/* <WelcomeBanner /> */}
<ApikeyInfoPanel />
<div className='flex flex-row items-center justify-between mb-4 text-xl text-gray-900'>
{t('overview.title')}
<EditKeyPopover />
Expand Down
2 changes: 1 addition & 1 deletion web/app/(commonLayout)/list.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.listItem {
@apply col-span-1 bg-white border-2 border-solid border-transparent rounded-lg shadow-sm min-h-[160px] flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg;
@apply col-span-1 bg-white border-2 border-solid border-transparent rounded-lg shadow-xs min-h-[160px] flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg;
}

.listItem.newItemCard {
Expand Down
Loading