Skip to main content

for poe api

Project description

用户指南

pip3 install PyPoeApi==0.2.3

设置账户文件,使用PyPoeApi

from PyPoeApi.poe_client import PoeClient, Chat

PoeClient.ACCOUNT_FILE = "设置文件位置"

async with await PoeClient.create() 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指出从每天的什么时候开始更新

借鉴

https://github.com/canxin121/Async-Poe-Client

Project details


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.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyPoeApi-0.2.4-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file PyPoeApi-0.2.4.tar.gz.

File metadata

  • Download URL: PyPoeApi-0.2.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for PyPoeApi-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a4e2c89f358969568d9a9aa6529bc76c710c03de909123f2595178830d1b738f
MD5 76187f4075264abc8bae0b913497b527
BLAKE2b-256 886b0335ade513ac63b3bfe455abc04ad07f20f714d8c8ee793b265aef5731b2

See more details on using hashes here.

File details

Details for the file PyPoeApi-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: PyPoeApi-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for PyPoeApi-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb2747bfcc64062df168726a51ae2cac29ab1d8a632f849957658937afa1135
MD5 5cf60db0fb1e88fb80fa326ac0502017
BLAKE2b-256 a9cc665b7030b8429f92028a6e1310155178de277faf2e452c06ca6a305d290b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page