semvec/pypi-packages huggingface dataset:
nonebot-plugin-xinghuo-api 2.4.0
A nonebot plugin for xinghuo LLM
License: MIT
Requires Python: <4.0,>=3.8

<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-xinghuo-api
</div>

# 介绍
- 本插件是适配科大讯飞星火大模型官方API的聊天机器人插件，同时具有上下文记忆回复和自定义人格功能。已适配版本：Ultra，Max，Pro，Pro-128K，V2.0，Lite。
- 当前版本可能会与LittlePaimon机器人冲突
# 安装

* 手动安装
  ```
  git clone https://github.com/Alpaca4610/nonebot-plugin-xinghuo-api.git
  ```

  下载完成后在bot项目的pyproject.toml文件手动添加插件：

  ```
  plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-xinghuo-api"]
  ```
* 使用 pip
  ```
  pip install nonebot-plugin-xinghuo-api
  ```

# 配置文件

必选内容: 在Bot根目录下的.env文件中填入科大讯飞提供的API调用鉴权信息：

```
xinghuo_app_id = xxxxxxxx
xinghuo_api_secret = xxxxxxxx
xinghuo_api_key = xxxxxxxx
```

可选内容：
```
xinghuo_enable_private_chat = True   # 私聊开关，默认开启，改为False关闭
xinghuo_api_version = ""    #星火大模型的版本，默认为免费的Lite模型，可选填：Ultra，Max，Pro，Pro-128K，V2.0，Lite
xinghuo_api_prompt = "" # 星火大模型人格prompt，留空默认不开启，人格设置是否成功与人格prompt有关
```

# 使用方法

- xh 获取回复，没有上下文回复的能力
- XH 获取回复，具有上下文回复的能力
- xh_clear 清除当前用户的聊天记录
jenkins-pysdk 1.4.4
2024 Python SDK for Jenkins
License: MIT
Requires Python: >=3.7
Keywords: python, Jenkins, SDK, API, REST

# Jenkins Python SDK (jenkins_pysdk)

[![Documentation Status](https://readthedocs.org/projects/jenkinspythonsdk/badge/?version=latest)](https://jenkinspythonsdk.readthedocs.io/en/latest/?badge=latest) 
![CodeQL](https://github.com/KnownZero/JenkinsPythonSDK/actions/workflows/github-code-scanning/codeql/badge.svg)
![PyPI - Downloads](https://img.shields.io/pypi/dd/jenkins_pysdk?color=blue&cacheSeconds=3600)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jenkins-pysdk)


## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/installation/) and 
[JenkinsPythonSDK | pypi.org](https://pypi.org/project/jenkins-pysdk/) to install jenkins-pysdk.

```bash
pip install jenkins-pysdk
```

## Quick Usage

```python
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(host="Jenkins.DNS.com", username="<username>", passw="<passw>")
```
#### OR

```python
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(
    host="http://localhost",
    port=8080,
    username="<username>",
    token="<token>",
    proxies={
        "http://": "http://localhost:8080",
        "https://": "http://<username>:<password>@localhost:8080"
    },
    timeout=60,
    verify=False
)
```

#### Proxies
```
For more advanced proxy usage, see HTTPX docs:
https://www.python-httpx.org/advanced/transports/#routing
```

#### Why use token= parameter?
```
Using an API token removes the need for csrf crumbs in your requests. 

The SDK handles crumbs for you, but using token= will reduce the number of API calls. 
```

### See [[JenkinsPythonSDK Docs](https://jenkinspythonsdk.readthedocs.io/en/latest/index.html)] for full documentation.

## Contributing

Feel free to create pull requests.

For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

> [!NOTE]
> I actively support this SDK, but I don't proactively check Jenkins release notes -
> if the SDK is missing something after an upgrade, please raise it in the discussions section.


> [!IMPORTANT]
> Code is tested on LTS versions:
> - "2.121.3"  # (2018)
> - "2.138.4"  # (2019)
> - "2.150.3"  # (2019)
> - "2.164.3"  # (2019)
> - "2.176.4"  # (2019)
> - "2.190.3"  # (2020)
> - "2.204.6"  # (2020)
> - "2.222.4"  # (2020)
> - "2.235.5"  # (2021)
> - "2.249.3"  # (2021)
> - "2.263.4"  # (2021)
> - "2.277.4"  # (2021)
> - "2.289.3"  # (2021)
> - "2.303.3"  # (2021)
> - "2.319.1"  # (2022)
> - "2.332.3"  # (2022)
> - "2.346.3"  # (2022)
> - "2.361.4"  # (2023)
> - "2.375.3"  # (2023)
> - "2.387.1"  # (2024)


## Author
KnownZero