devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
353 stars 43 forks source link

Support for poe.com (quora's chatbot service) api #299

Open knamnguyen opened 7 months ago

knamnguyen commented 7 months ago

Hey team! I'm using poe.com on their web interface, which:

With openai api, I'm sending 50 gpt-4 messages/day/4$ ~ 1500 msg/month and it's costing me 100$/month 🥲

Can I propose the feature to support adding poe.com api as an option to access their model through my personal poe.com api key, which will be counted towards my poe.com montly limit?

Context

import asyncio
import fastapi_poe as fp

# Create an asynchronous function to encapsulate the async for loop
async def get_responses(api_key, messages):
    async for partial in fp.get_bot_response(messages=messages, bot_name="GPT-3.5-Turbo", api_key=api_key):
        print(partial)

# Replace <api_key> with your actual API key, ensuring it is a string.
api_key = <api_key>
message = fp.ProtocolMessage(role="user", content="Hello world")

# Run the event loop
# For Python 3.7 and newer
asyncio.run(get_responses(api_key, [message]))

Thank you so much for your hardwork!

runjinz commented 7 months ago

We're sorry to have kept you waiting. After internal discussions, we currently do not have the manpower to support this request. Thank you for your support.

@knamnguyen