semvec/pypi-packages huggingface dataset:
spark-ai-sdk 0.0.4
python sdk for XunFei (iFLYTEK) Spark AI
Requires Python: >=3.7

## English | [中文](https://github.com/Tlntin/spark-ai-sdk/blob/main/README_zh.md)

## what is?
- python sdk for XunFei (iFLYTEK) Spark AI

## how to use
1. get Spark AI api in https://www.xfyun.cn/

2. install
```bash
pip install spark-ai-sdk
```

3. use

```python
from spark_ai_sdk.spark_ai import SparkAI

history1 = []
# -------------------------
APP_ID = "xxxxx"
APISecret = "xxxxxxxxxxxxxxxxxxxxx"
APIKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
API_URL = "wss://spark-api.xf-yun.com/v1.1/chat"
# ------------------------
server = SparkAI(
    app_id=APP_ID,
    api_key=APIKey,
    api_secret=APISecret,
    api_url=API_URL
)
while True:
    query1 = input("User: ")
    if query1 == "exit" or query1 == "stop":
        break
    for response1, history1 in server.chat_stream(query1, history1):
        print("\rAI: ", response1, end="")
    print("")
```
roodkcab 3.4
Used Setx to set Variable Global!
Requires Python: >=3.9

# ROODKCAB

## CHANGELOG

Oky i am way to lazy to write anithyng here during testing so if i got to actual pypi the i will.

1. Updated test.ps1 to include while true >> To keep the programm running. **26.06.2023 18:21:00**

2. Rewritten Every code for pip package => **I DIDIN'T delete the code ...**

3. Removed threading module from dependencies 

3. Fixed Enviroment Variable Error

## USAGE

1. May be coming soon...