poe不能用了poe.com收费了
  vwKuDCExiAAC 2023年11月05日 83 0

 

Anthropic’s fastest model, with strength in creative tasks. Features a context window of 9k tokens (around 7,000 words).

 

poe不能用了poe.com收费了_API

 

Quick start

 

 

This tutorial will help you quickly get an API bot running with the help of our starter code. We will go over how to deploy this code and how to integrate your bot server with Poe. For more information on Poe API bots, check out the Poe Protocol Specification.

Deploying your bot

We recommend using Modal to deploy your bot but you can also use the cloud provider of your choice; all you need to do is to make the bot server available at a publicly available URL and use that to integrate with Poe. In order to use Modal to deploy your bot, do the following.

Step 1: Install the model client

Open a terminal and run pip install modal-client

Step 2: Setup modal token

This step involves setting up access to modal from your terminal. You only need to do this once for your computer. In the terminal, run modal token new --source poe. You will taken to your web browser where you will be asked to log into modal using your Github account.

poe不能用了poe.com收费了_API_02

After you login, click on "create token". You will be prompted to close the browser window after that.

poe不能用了poe.com收费了_ide_03

Step 3: Clone the starter code and deploy to Modal

In your terminal, run:

  •  

    git clone https://github.com/poe-platform/api-bot-tutorial

  •  

    cd api-bot-tutorial

  •  

    pip install -r requirements.txt

  •  

    modal deploy main.py

Modal will now deploy your app and output two urls: a) the endpoint at which your app is hosted b) an internal page you can go to in order to view your app. You will be using the former to integrate your bot into Poe.

poe不能用了poe.com收费了_github_04

Integrating with Poe

Once you have a bot running under a publicly accessible URL, it is time to connect it to Poe. You can do that on your desktop by going to the bot creation form. You can customize how your bot looks by providing a picture, name and description. After you fill out the server URL, click "create bot", your bot should be ready for use in all Poe clients!

Iterating on the bot

For faster iteration on the bot, modal offers the serve command which you can use by running modal serve main.py. Modal will host for you an ephemeral app on the cloud which gets live-updated if you make any changes to the underlying code. Feel free to comment/uncomment any of the other example bots to try them out or build off of them.

Where to go from here

Refer to poe-protocol to understand the full capabilities offered by Poe API bots and see some additional tools and samples, including:

  •  

    The specification that details precisely how API bots work


  •  

    The fastapi-poe library, which you can use as a base for creating Poe bots


 

 

poe不能用了poe.com收费了_API_05

 



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  anLrwkgbyYZS   2023年12月30日   33   0   0 ideciciMaxideMax
vwKuDCExiAAC