Metadata-Version: 2.1
Name: nonebot-plugin-oachat
Version: 0.1.0
Summary: A nonebot2 plugin package for openai api chatBot
Author-email: Gin2O <wulun0102@outlook.com>
License: MIT License
        
        Copyright (c) 2023 Gin2O
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/gin2o/nonebot_plugin_oachat
Project-URL: Bug Tracker, https://github.com/gin2o/nonebot_plugin_oachat/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

<div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot_plugin_oachat

_✨ NoneBot openai api ——简单的调用接口  ✨_

<a href="https://pypi.python.org/pypi/nonebot-plugin-note">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-note.svg" alt="pypi">
</a>

</div>


# 安装

* pip 
```
pip install nonebot-plugin-oachat
```

* nb_cli
```
nb plugin install nonebot-plugin-oachat
```

# 配置.env

```
# ====== WULUN_OACHATBOT ======   # 没有上下文的OPENAI
oachat_on_command = /chat

OPENAI_API_KEY = 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
OPENAI_API_MODELID = "text-davinci-003"
OPENAI_MAX_TOKENS = 1000
```



# 使用
```
nonebot.load_plugin('nonebot_plugin_oachat')
```


# 命令
**注：使用命令时需要加命令前缀** 

* ```
  使用 /chat + 对话即可
  ```
  
  


# 其他

有bug有什么想法都可以告诉我，可先用e-mail联系：wulun0102@outlook.com



- 本项目只是为了一个简单可分离的接口，以便接入后续的新api



# 🐦 TODO list

- [ ] 加入上下文对话；
- [ ] 等待大家的反馈；
- [ ] 搞到本地模型；
- [ ] 增解除文本输出限制；



## 特别鸣谢：

- None
