Skip to main content

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


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.1.7.tar.gz (13.1 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.1.7-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for PyPoeApi-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f2f057be2ddd928f361a41b23ca6d675970590c49a9eb4957c5a01456c551d5b
MD5 66593da273e835d14b334b5509eab998
BLAKE2b-256 624b8e73834e58bf76b726de733f53cdc7b8de1e15bd2d6b05c5c03dfb58aee1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyPoeApi-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 276182ddcb065e9c7856806948f81943295a289ec7a245f75d07acd7a93cfdda
MD5 3b10c9f3309fc5b10cfe30fb9cde0ef8
BLAKE2b-256 8dabcde81b38a262c62a5872580c91394b8ea1de6842f2704ec6df95ed1f3d80

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