Anthropic’s fastest model, with strength in creative tasks. Features a context window of 9k tokens (around 7,000 words).
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 runpip 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.
After you login, click on "create token". You will be prompted to close the browser window after that.
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 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,bot,will,modal,收费,poe,com,your From: https://www.cnblogs.com/flyingsir/p/17657163.html