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

[pull] main from yihong0618:main #5

Open
wants to merge 115 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
5cea081
Add Azure OpenAI support (#222)
changeforan Apr 17, 2023
10ab1f1
doc: Update readme and config example
frostming Apr 17, 2023
4824016
chore: control the workflow concurrency
frostming Apr 17, 2023
b7a168e
fix: ensure the api_base isn't empty before checking it
frostming Apr 17, 2023
0cb8e16
feat: Option to serve the Edge TTS audio file via a tempfile service …
frostming Apr 19, 2023
81c33fb
fix: edgegpt break change
yihong0618 Apr 19, 2023
41711f6
feat: Improve the code to get a bot (#243)
frostming Apr 26, 2023
361e11c
依赖库更新,原有依赖已无匹配包 (#253)
tanaer May 7, 2023
a39e0cf
添加windows 一键启动方式 (#273)
kaiven11 May 29, 2023
9124f54
fix: #274
yihong0618 May 30, 2023
6bf0bd5
Add support for X10A model (#281)
Phillweston Jun 3, 2023
aef80c9
Add README note for X10A model (#283)
Phillweston Jun 3, 2023
ab47ed5
fix: name
yihong0618 Jun 6, 2023
1c4c94e
fix: use new model
yihong0618 Jun 14, 2023
2a572d0
chore(deps): bump requests from 2.28.2 to 2.31.0 (#301)
dependabot[bot] Jun 22, 2023
0889853
feat: chatglm bot
yihong0618 Jun 27, 2023
385f40d
fix: ci
yihong0618 Jun 27, 2023
e96dfa6
fix: ignore personal file
frostming Jul 1, 2023
9e172e2
Fix GPT3Bot.ask_stream (#308)
maxint Jul 3, 2023
e0f0d3a
feat: support bard (#315)
yihong0618 Jul 20, 2023
e7083bd
Update README.md
yihong0618 Jul 20, 2023
25aa50b
Update README.md
yihong0618 Jul 20, 2023
7101f80
chore: update lockfile and requirements
frostming Jul 21, 2023
9eb5b18
Fix: #282 (#318)
huwei901108 Jul 24, 2023
d58b37e
chore(deps): bump requests from 2.28.2 to 2.31.0 (#319)
dependabot[bot] Jul 24, 2023
81480e3
chore(deps): bump pygments from 2.14.0 to 2.15.0 (#321)
dependabot[bot] Jul 24, 2023
c80d831
chore(deps): bump aiohttp from 3.8.4 to 3.8.5 (#322)
dependabot[bot] Jul 24, 2023
9f92d80
fix: #282 #272 (#326)
yihong0618 Jul 30, 2023
dfcebac
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 (#327)
dependabot[bot] Jul 31, 2023
0cd7c37
docs(README.md): add use in wsl have Notice (#330)
jokereven Aug 4, 2023
269f559
fix: #337
yihong0618 Sep 15, 2023
12158d5
feat: support LangChain (#344)
dongjing007 Oct 22, 2023
8b3e9e8
fix: better mute xiaoai, fix: #331
yihong0618 Oct 24, 2023
414b77f
refactor: (#350)
dongjing007 Oct 25, 2023
d8b06d4
fix: Async callback for langchain (#353)
frostming Oct 26, 2023
968cebd
chore(deps): bump langchain from 0.0.301 to 0.0.317 (#354)
dependabot[bot] Oct 26, 2023
12117de
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 (#355)
dependabot[bot] Oct 26, 2023
ed6cd47
feat: support memory and non-stream mode for langchain bot (#356)
frostming Oct 27, 2023
95c5051
chore(deps): bump aiohttp from 3.8.4 to 3.8.5 (#357)
dependabot[bot] Oct 28, 2023
7169039
chore(deps): bump urllib3 from 1.26.15 to 1.26.18 (#358)
dependabot[bot] Oct 28, 2023
4d6d820
chore(deps): bump pygments from 2.14.0 to 2.15.0 (#359)
dependabot[bot] Oct 28, 2023
a05142d
fix: fix issue #347 (#360)
cxjava Oct 30, 2023
4af487e
add example for deployment_id and api_base (#361)
cxjava Oct 30, 2023
d254fe0
Update README.md (#367)
KJZH001 Nov 7, 2023
7929912
fix: version lock
yihong0618 Nov 7, 2023
013f6d5
feat: update to be compatible with openai 1.0 (#370)
frostming Nov 10, 2023
08f7827
feat: fix lockfile and dependencies
frostming Nov 12, 2023
f856d04
feat: extract TTS into its own module (#372)
frostming Nov 15, 2023
f46e51b
fix: #342
yihong0618 Nov 15, 2023
a2bcd2d
fix: CLI default value overrides the config (#376)
frostming Nov 17, 2023
f60711d
Update README.md (#377)
VectorZhao Nov 21, 2023
0fdb070
Update README.md
yihong0618 Nov 23, 2023
f1d961a
fix: #384 and langchain bot (#385)
yihong0618 Nov 30, 2023
c2a785d
feat: OpenAI TTS (#387)
frostming Nov 30, 2023
42b3c6d
fix: add 请!
yihong0618 Nov 30, 2023
32724d9
fix: better start
yihong0618 Dec 2, 2023
e3032e5
chore(deps): bump aiohttp from 3.8.6 to 3.9.0 (#395)
dependabot[bot] Dec 10, 2023
785f652
fix: no S12 thanks @gaidan1983
yihong0618 Dec 12, 2023
bcfc9fa
Update config.py (#397)
gaidan1983 Dec 13, 2023
be73971
fix: use contributor's code
yihong0618 Dec 13, 2023
5553a77
Update README.md
yihong0618 Dec 13, 2023
bce45ff
fix: #396
yihong0618 Dec 13, 2023
7dffbb1
Merge branch 'main' of https://github.com/yihong0618/xiaogpt
yihong0618 Dec 13, 2023
c98eb49
fix: #400
yihong0618 Dec 14, 2023
05a2027
update args table format in readme (#404)
wavezhang Dec 19, 2023
e4b30b4
feat: support gemini close #402 #412 #403 #338 (#420)
yihong0618 Jan 7, 2024
fa6b013
fix: #421
yihong0618 Jan 8, 2024
606215b
fix: eliminate the deprecation warings from langchain (#423)
frostming Jan 8, 2024
2258b88
fix: docker imge issues #419 #425 (#426)
isanwenyu Jan 13, 2024
f25d458
feat: support qwen (#429)
yihong0618 Jan 17, 2024
11b5c3a
fix: #432
yihong0618 Jan 19, 2024
5a02fdc
fix: lazy import bot-specific modules (#439)
frostming Jan 25, 2024
9a74fd2
fix: #436 (#440)
yihong0618 Jan 28, 2024
97d834e
fix: micli version
yihong0618 Jan 29, 2024
8447f69
fix: #441
yihong0618 Feb 2, 2024
4abe42d
fix: #443 maybe
yihong0618 Feb 3, 2024
f0930d3
fix: Update AOAI API version (#450)
frostming Mar 6, 2024
6427e28
docs: docker network host update README.md (#454)
ycjcl868 Mar 10, 2024
d4841d1
chore(deps): bump langchain from 0.1.4 to 0.1.11 (#455)
dependabot[bot] Mar 12, 2024
0c3abcc
Revert "chore(deps): bump langchain from 0.1.4 to 0.1.11 (#455)" (#456)
yihong0618 Mar 12, 2024
0e73138
Update README.md (#468)
Chigogo Apr 9, 2024
d0dfa75
feat(tts): Support AzureTTS. (#474)
laipz8200 Apr 12, 2024
74f9de2
fix: vulnerable to denial of service from specially crafted inputs to…
yihong0618 Apr 12, 2024
4448113
fix: back
yihong0618 Apr 12, 2024
5ed01bd
fix: drop gpt3 and bard and fix a bug
yihong0618 Apr 13, 2024
d4da461
fix: docker python3.11-slim have no libssl1.1
yihong0618 Apr 14, 2024
9b906d4
ci: fix: warning for node16 in Actions
yihong0618 Apr 14, 2024
8d7dc78
chore: update miservice_fork version
yihong0618 Apr 15, 2024
1983c20
fix: use pdm-build-locked instead of pinning dependencies in pyprojec…
frostming Apr 15, 2024
c6492d9
Update README.md (#479)
Chigogo Apr 16, 2024
7468331
feat: support volc engine (#480)
sundy-li Apr 18, 2024
97e534b
fix: alert pdm update is soooooo cool
yihong0618 Apr 18, 2024
571d8dc
feat: switch to tetos (#484)
frostming Apr 18, 2024
5c7c9ec
feat: Support Doubao from Volcengine (#487)
frostming Apr 19, 2024
547ea38
gemini 支持传入自定义域名 (#485)
iazrael Apr 19, 2024
e0bdf4c
fix: incompatibility for Python 3.9 and older
frostming Apr 20, 2024
7a915f1
fix: doubao doc and doubao cli
yihong0618 Apr 20, 2024
05b868c
Update README.md (#493)
DavidZhiXing Apr 21, 2024
1383224
fix: extract the language code wrapped in a markup (#494)
frostming Apr 24, 2024
a07eb2d
docs: fix typo (#497)
subordon Apr 25, 2024
fbdee6b
feat: new bots openai like yi llama3 01 (#499)
yihong0618 May 3, 2024
f274ec2
feat: switch to yaml config (#501)
frostming May 9, 2024
e66be71
fix: change openai default model
yihong0618 May 14, 2024
e9feef6
fix: can't stop when play background music (#509)
hanxi May 17, 2024
8c7dffa
fix: update version
yihong0618 May 17, 2024
c9fd4bc
chore: requirements
yihong0618 May 18, 2024
f5b8324
fix: No module named 'langchain_community'
yihong0618 May 18, 2024
241abfd
fix: #514 xiaogpt need play
yihong0618 May 20, 2024
e12a6fb
docs: add MiGPT (#516)
idootop May 21, 2024
82c57cc
Update README.md
yihong0618 May 21, 2024
c82be6a
feat: detect language using lingua, instead of trusting LLM (#518)
frostming May 22, 2024
cb05021
chore: bump versions
yihong0618 Jul 8, 2024
ed0ecc5
fix: use gpt4o-mini close #541
yihong0618 Jul 22, 2024
f41cb11
chore: packages
yihong0618 Jul 22, 2024
39b6e8f
chore: update dependencies
frostming Aug 16, 2024
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
Prev Previous commit
Next Next commit
fix: ensure the api_base isn't empty before checking it
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Apr 17, 2023
commit b7a168e7784f50552e72bb5befced67395e9af15
3 changes: 2 additions & 1 deletion xiaogpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def __post_init__(self) -> None:
elif not self.openai_key:
raise Exception("Using GPT api needs openai API key, please google how to")
if (
self.api_base.endswith(("openai.azure.com", "openai.azure.com/"))
self.api_base
and self.api_base.endswith(("openai.azure.com", "openai.azure.com/"))
and not self.deployment_id
):
raise Exception(
Expand Down