Commit graph

11 commits

Author SHA1 Message Date
Johnson
675902f5a8
feat(ollama): improve connection check method and provide selector for user to control model options (#1397)
* 🐛 fix(ollama): change checker with ollama's tags api

* feat(ollama): add error card to pull model

* 🚚 chore: move files

* 💄 style: update llava logo

* 🐛 fix: add ollama service unavailable error type

* 🐛 fix: ollama show passed with error message exists

*  feat(ollama): add download moniter to show speed and eta remaining time

* 🚨 ci: fix lint

* 💄 style: improve download style

* 🌐 style: add i18n

---------

Co-authored-by: shijianyue <shijianyue@bytedance.com>
Co-authored-by: arvinxx <arvinx@foxmail.com>
2024-03-15 22:47:21 +08:00
小云丨Arale
060969098c
feat: support login & session authentication via OAuth 2.0 (Auth0) (#1143)
*  feat: adding OAuth2 support

* 🐛 fix: translation for OAuth2

* ♻️ refactor: refactor OAuth 2.0

- clean up code under /api/openai
- update middleware.ts to use custom middleware
- clean up unnessary type definitions

* ♻️ refactor(config): Use server config to enable/disable OAuth 2.0

* 🐛 fix: Adapt OAuth 2.0 middleware to new authentication methods

* 📝 docs(config): Environment variables for Authentication Service Providers

* 📝 docs: Add authentication setup guides for LobeChat

docs: Add authentication setup guides for LobeChat
```

Added detailed documentation for setting up the authentication services in LobeChat, with a focus on integrating Auth0. This includes guides for creating an Auth0 application, adding users, and configuring environment variables. Advanced topics cover connecting to existing single sign-on services and setting up social logins. This effort enhances the platform's security and provides clear instructions for enterprise users on authentication procedures.

* 📝 docs: Add authentication integration guide for LobeChat

docs: Add authentication integration guide with Auth.js

Adds a comprehensive guide on integrating a new authentication provider
using Auth.js in both English and Chinese documentation. The guide
includes pre-requisites, step-by-step code integration, server
configuration updates, frontend changes, and environment variable setup.
```

The changes introduce a new guide in the documentation for integrating new authentication providers using Auth.js. The guide is provided in both English and Chinese, ensuring broad accessibility. It covers the necessary pre-requisites, detailed instructions for adding the core authentication code, updating server configuration, modifying frontend components, and setting up the required environment variables. This will aid developers in implementing authentication features using Auth.js in the LobeChat application.
2024-02-08 16:04:10 +08:00
Arvin Xu
615e796357
♻️ refactor: refactor the setting storage from localStorage to indexedDB (#1180)
* 🚧 wip: add user schema

* ♻️ refactor: refactor the copy with new api

* ♻️ refactor: refactor a preference slice

* ♻️ refactor: refactor the settings store

*  test: fix test

* 🎨 chore: clean code

* 🎨 chore: clean code

* 🎨 chore: clean code

* 🎨 chore: clean code

* 🐛 fix: fix update default agent

* 🐛 fix: fix update default agent
2024-01-30 22:38:25 +08:00
Arvin Xu
bb8085e707
♻️ refactor(migration): Next.js app router (#220) 2023-09-25 14:33:53 +08:00
arvinxx
fdb3a3fc68 ♻️ refactor: 优化 edit 代码结构 2023-07-22 17:24:13 +08:00
canisminor1990
c511964d96 feat: Introduce FOLDER_WIDTH constant and update components
- Add new constant FOLDER_WIDTH and use it in different components
- Import various components and libraries
- Define new functions and components
- Modify layout and structure of components in some files
- Update tsconfig.json to include new paths in the project
2023-07-20 14:34:39 +08:00
canisminor1990
e18fc57aaa feat: Add i18n auto flow pnpm run i18n 2023-07-18 11:38:10 +08:00
canisminor1990
53cd87c8ba feat(i18n): Add i18next and lobe-i18n internationalization configuration files and update dependencies
This commit introduces new configuration files for internationalization,
deletes one file, modifies existing files, and adds new files. The changes
also involve importing dependencies and updating app and document pages.
Additional libraries and modules are used in a React application. The Header
component is modified, the index page is updated for server-side translations,
and the tsconfig.json file is modified.

Description:
- Added configuration files for internationalization
- Deleted one file
- Modified existing files
- Added new files
- Imported dependencies
- Updated app and document pages
- Used additional libraries and modules in a React application
- Modified the Header component
- Updated the index page for server-side translations
- Modified the tsconfig.json file.
2023-07-15 18:22:47 +08:00
canisminor1990
4e522a6e2b 🔧 chore: Update setting
This commit introduces new components, modules, and features related to chat, sessions, and settings. It includes modifications to configuration files, updates to dependencies, adjustments to styles and layouts, and additions of new components and modules. The changes also involve updates to functions, interfaces, selectors, actions, and reducers. Additionally, there are modifications to TypeScript interfaces and types, as well as changes to parameters and functions in certain files.
2023-07-15 15:48:20 +08:00
Arvin Xu
3db700a3b0
sparkles: feat: Chat v0.1 (#7)
---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2023-07-11 19:46:11 +08:00
arvinxx
7861f97152 🎉 chore: 初始化项目配置 2023-05-21 15:34:04 +08:00