for poe api
Project description
用户指南
pip3 install PyPoeApi==0.1.6
设置账户文件,使用PyPoeApi
from PyPoeApi.poe_client import PoeClient, Chat
PoeClient.ACCOUNT_FILE = ""
async with await PoeClient.create(playground_v2=True) as poe_client:
chat = Chat()
image_url = await poe_client.ask(bot_name="Playground-v2",
question="白天,下雨,沙滩,美女,长发,跳舞",
chat=chat)
print(image_url)
ACCOUNT_FILE格式如下
accounts:
- Claude-instant-100k: false
Playground-v2: false
StableDiffusionXL: false
formkey: ""
limit: true
p_b: ""
date: 2024-02-08
hour: 9
其中p_b和formkey是登录的cookie, 通过浏览器或者抓包都可以获取到, 剩下4个bool变量都是用于记录是否限制了,其中 Claude-instant-100k是语言模型,限制30条一天, Playground-v2是图像模型,限制100条一天, StableDiffusionXL是图像模型,限制100条一天, limit是剩余其他大部分模型,总计100条一天。 date和hour分别更新相关的,date指出限制是什么时候,hour指出从什么时候开始更新, 就是把4个bool值变成false,直到触发限制异常就会变成true。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyPoeApi-0.2.1.tar.gz.
File metadata
- Download URL: PyPoeApi-0.2.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfe58453d5246f3b7da83ab95a1d6f2f7226ac72d8d6cf348f0a03e059366c57
|
|
| MD5 |
42955c2332955700d21348c99356bcd4
|
|
| BLAKE2b-256 |
c2d5c906e33f3d6860bac30f39c5548a9bcac7a8d7e006c345ea8eaed037b10f
|
File details
Details for the file PyPoeApi-0.2.1-py3-none-any.whl.
File metadata
- Download URL: PyPoeApi-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0be731fc90a5ac211711a121549db6c5387322db2367c7cf4c3b4d95d353ca8
|
|
| MD5 |
46b61123a2b37cd2df721c82f6b63e37
|
|
| BLAKE2b-256 |
af646292976e2ef2fa47ceb171c30c6eb4932e007bff673b80a87a94c093cc31
|