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 125 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
125 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
f545887
feat: support fish
yihong0618 Sep 14, 2024
011637e
doc: fix fish info
yihong0618 Sep 15, 2024
915d674
fix: do not hardcode glm model (#547)
frostming Sep 22, 2024
8f7e0f0
chore: update node version for release workflow
frostming Sep 22, 2024
8e4a35d
fix: #552 by replace star
yihong0618 Oct 10, 2024
f3c6aa0
fix: lint
yihong0618 Oct 10, 2024
3fe423e
fix: lock version
yihong0618 Oct 10, 2024
7096933
chore: versions
yihong0618 Oct 11, 2024
9e4a4b5
feat: support live TTS of fish audio (#555)
frostming Oct 29, 2024
686252e
fix: make mp3 replayable (#557)
frostming Oct 30, 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: use pdm-build-locked instead of pinning dependencies in pyprojec…
…t.toml (yihong0618#478)

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Apr 15, 2024
commit 1983c203ec0f000ce34622da2fc23bf1b3b7a56f
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set MI_DID=xxxx
```

- 如果获取did报错时,请更换一下无线网络,有很大概率解决问题。

### Linux(使用 export 设置环境变量)
```sh
# 1、安装模块
Expand Down Expand Up @@ -59,7 +59,7 @@ export MI_DID=xxxx

## 使用

- `pip install -U --force-reinstall xiaogpt`
- `pip install -U --force-reinstall xiaogpt[locked]`
- 参考我 fork 的 [MiService](https://github.com/yihong0618/MiService) 项目 README 并在本地 terminal 跑 `micli list` 拿到你音响的 DID 成功 **别忘了设置 export MI_DID=xxx** 这个 MI_DID 用
- run `xiaogpt --hardware ${your_hardware} --use_chatgpt_api` hardware 你看小爱屁股上有型号,输入进来,如果在屁股上找不到或者型号不对,可以用 `micli mina` 找到型号
- 跑起来之后就可以问小爱同学问题了,“帮我"开头的问题,会发送一份给 ChatGPT 然后小爱同学用 tts 回答
Expand Down Expand Up @@ -178,7 +178,7 @@ ChatGLM [文档](https://open.bigmodel.cn/doc/api#chatglm_130b)
| use_command | 使用 MI command 与小爱交互 | `false` | |
| mute_xiaoai | 快速停掉小爱自己的回答 | `true` | |
| verbose | 是否打印详细日志 | `false` | |
| bot | 使用的 bot 类型,目前支持 chatgptapi,newbing, qwen, gemini | `chatgptapi` | |
| bot | 使用的 bot 类型,目前支持 chatgptapi,newbing, qwen, gemini | `chatgptapi` | |
| tts | 使用的 TTS 类型 | `mi` | `edge`、 `openai`、`azure` |
| tts_voice | TTS 的嗓音 | `zh-CN-XiaoxiaoNeural`(edge), `alloy`(openai), `zh-CN-XiaoxiaoMultilingualNeural`(azure) | |
| prompt | 自定义prompt | `请用100字以内回答` | |
Expand Down
60 changes: 43 additions & 17 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@ dependencies = [
"openai>=1",
"aiohttp",
"rich",
"zhipuai==2.0.1",
"httpx==0.24.1",
"zhipuai>=2.0.1",
"httpx[socks]",
"edge-tts>=6.1.3",
"EdgeGPT==0.1.26",
"langchain>=0.0.343",
"beautifulsoup4>=4.12.0",
"google-search-results>=2.4.2",
"google-generativeai",
"numexpr>=2.8.6",
"dashscope==1.10.0",
"httpcore==0.15.0",
"idna==3.7",
"dashscope>=1.10.0",
"azure-cognitiveservices-speech>=1.37.0",
]
license = {text = "MIT"}
dynamic = ["version"]
dynamic = ["version", "optional-dependencies"]

[project.urls]
Homepage = "https://github.com/yihong0618/xiaogpt"
Expand All @@ -47,11 +45,12 @@ source = "scm"

[tool.pdm.build]
includes = ["xiaogpt/"]
locked = true

[[tool.pdm.autoexport]]
filename = "requirements.txt"
without-hashes = true

[build-system]
requires = ["pdm-backend>=2.0.0"]
requires = ["pdm-backend>=2.0.0", "pdm-build-locked"]
build-backend = "pdm.backend"
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ googleapis-common-protos==1.62.0
greenlet==3.0.3; platform_machine == "win32" or platform_machine == "WIN32" or platform_machine == "AMD64" or platform_machine == "amd64" or platform_machine == "x86_64" or platform_machine == "ppc64le" or platform_machine == "aarch64"
grpcio==1.60.0
grpcio-status==1.60.0
h11==0.12.0
httpcore==0.15.0
h11==0.14.0
httpcore==1.0.5
httplib2==0.22.0
httpx==0.24.1
httpx==0.27.0
idna==3.7
jsonpatch==1.33
jsonpointer==2.4
Expand Down Expand Up @@ -72,6 +72,7 @@ requests==2.31.0
rich==13.7.1
rsa==4.9
sniffio==1.3.0
socksio==1.0.0
soupsieve==2.5
sqlalchemy==2.0.25
tenacity==8.2.3
Expand Down