-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
改成ThorChat版本
- Loading branch information
Showing
1,434 changed files
with
99,338 additions
and
32,485 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace FastWiki.Service.Options; | ||
|
||
public class WebOptions | ||
{ | ||
public static void Init(IConfiguration configuration) | ||
{ | ||
DEFAULT_MODEL = Environment.GetEnvironmentVariable("DEFAULT_MODEL") ?? configuration["Thor:DefaultModel"]; | ||
DEFAULT_AVATAR = Environment.GetEnvironmentVariable("DEFAULT_AVATAR") ?? configuration["Thor:DefaultAvatar"]; | ||
DEFAULT_USER_AVATAR = Environment.GetEnvironmentVariable("DEFAULT_USER_AVATAR") ?? | ||
configuration["Thor:DefaultUserAvatar"]; | ||
DEFAULT_INBOX_AVATAR = Environment.GetEnvironmentVariable("DEFAULT_INBOX_AVATAR") ?? | ||
configuration["Thor:DefaultInboxAvatar"]; | ||
} | ||
|
||
public static string DEFAULT_MODEL { get; set; } = "gpt-3.5-turbo"; | ||
|
||
public static string DEFAULT_AVATAR { get; set; } = "🤖"; | ||
|
||
public static string DEFAULT_USER_AVATAR { get; set; } = "😀"; | ||
|
||
public static string DEFAULT_INBOX_AVATAR { get; set; } = "🤯"; | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_API_URL="http://localhost:5269" |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,24 @@ | ||
# Gitignore for AIDotNet | ||
################################################################ | ||
|
||
# general | ||
.DS_Store | ||
.idea | ||
.vscode | ||
.history | ||
.temp | ||
.env.local | ||
venv | ||
temp | ||
tmp | ||
|
||
# dependencies | ||
node_modules | ||
# Logs | ||
logs | ||
*.log | ||
*.lock | ||
package-lock.json | ||
|
||
# ci | ||
coverage | ||
.coverage | ||
.eslintcache | ||
.stylelintcache | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
# production | ||
node_modules | ||
dist | ||
es | ||
lib | ||
logs | ||
test-output | ||
dist-ssr | ||
*.local | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
.umi-test | ||
.dumi/tmp* | ||
|
||
# husky | ||
.husky/prepare-commit-msg | ||
|
||
# misc | ||
# add other ignore file below | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
.next | ||
.env | ||
public/*.js | ||
bun.lockb | ||
sitemap*.xml | ||
robots.txt | ||
|
||
*.patch | ||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.