for poe api
Project description
用户指南
pip3 install PyPoeApi==0.2.2
设置账户文件,使用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
formkey: ""
p_b: ""
limit: true
date: 2024-02-08
hour: 9
文件格式为yaml
accounts是数组
- p_b和formkey是登录的cookie,通过浏览器或者抓包都可以获取到,为固定值
- limit表示账户是否限制,目前POE采用计算点,免费的用户具有3000个计算点,每个模型的每个消息计算点都不一样,一旦达到了总计算点,会使limit为true
date用于标志是什么时候,由于计算点数每天会自动重置,当日期超过date的话,会重置上面每个账户的limit为false
hour指出从每天的什么时候开始更新
借鉴
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
PyPoeApi-0.2.2.tar.gz
(13.4 kB
view details)
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
PyPoeApi-0.2.2-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file PyPoeApi-0.2.2.tar.gz.
File metadata
- Download URL: PyPoeApi-0.2.2.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 |
bd251897857fea2ff12041e04db56b88b18be59fda0243c2de2130e434b33ac9
|
|
| MD5 |
448fa2bc7593d40149fd2e343ee9f42a
|
|
| BLAKE2b-256 |
bd7c06581cd361a61cfcab1ba2809210dac1025bd8c27068fe7a6ca9802ed98a
|
File details
Details for the file PyPoeApi-0.2.2-py3-none-any.whl.
File metadata
- Download URL: PyPoeApi-0.2.2-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 |
976881871af9464b98208d6ca03c9c66ab30bdcacd8bc69fb509a65f4e9db45a
|
|
| MD5 |
5a646427f3b8d29e32a44a9f592105cc
|
|
| BLAKE2b-256 |
85e6c92114410096fdce2f3b853b35f50042df5f498b6fde975fc48fe3415c19
|