Results 18 comments of BakaFT

截至现在问题依然存在,我来分析一下并提供一个Workaround。 ### 首先说原因 目前pypi上`chatgpt-tool-hub`的[最新版本(0.4.4)](https://pypi.org/project/chatgpt-tool-hub/)在[构造模型参数字典](https://github.com/goldfishh/chatgpt-tool-hub/blob/104ab11844b3ea9c396b97d9678ce19fb8e9a6ba/chatgpt_tool_hub/models/__init__.py#LL26C11-L26C11)的时候没有考虑`deployment_id`,导致后续OpenAI的Python库在初始化时[认为参数缺失而报错](https://github.com/openai/openai-python/blob/8470953ce2dd96a47d7c5175f5ced2d05707edaf/openai/api_resources/abstract/engine_api_resource.py#L82)。 ### 其实作者已经修复了这个问题 在 https://github.com/goldfishh/chatgpt-tool-hub/commit/96a98f6f0f0561e76d0f316ec2423b644498e718 中,作者已经修复了这个问题,然而pypi上并没有同步这个更新,依然停留在2023/5/15的版本。所以使用pip安装的依赖仍然存在该问题。 ### Workaround 丑陋,但是能用。特殊情况下不适用(tool插件下的`url-get`、`summary`等工具在新建模型的时候不会被这个覆盖到。考虑不修改依赖代码的情况,只能做到这个地步了) 将 `/plugins/tool/tool.py` 中`_reset_app()` 的 返回语句: ```python return app.create_app(tools_list=tool_list, **app_kwargs) ``` 改为: ```python patched_app = app.create_app(tools_list=tool_list, **app_kwargs) patched_app .llm.model_kwargs['deployment_id']...

https://github.com/goldfishh/chatgpt-tool-hub/issues/61 现在应该不会报错了

To be honest this project is currently inactive, so the feature request priority may be low. I think I can make it but you need to wait until next release...

I hate css, but I know a css super hero @Elaina69

Riot should not ban external API calls harshly. But for Pengu things become complicated because it's internal somehow. as you said we actutally inject `core.dll` into the client, which **may...

We have added a sync-blocking `PluginFS` implementation in #75 API Docs: https://beta.pengu.lol/runtime-api/plugin-fs

It's obvious that error lies in : https://github.com/AutumnWhj/ChatGPT-wechat-bot/blob/master/package.json#L13. Just delete the last comma symbol and you can use `npm i` now. I'm curious that is this only happening to me...

This guy's words is misleading due to translation issue. Old version Sakura is working fine on Tencent 13.24 is just because old `GameClient` pattern is still working. I gave a...

I have found the reason why it breaks and fixed it. This bug only happens in CN installs, and I've pushed a fix to @rumi-chan , just wait for next...