poe-platform / fastapi_poe

A helper library for writing Poe API bots using FastAPI
Apache License 2.0
112 stars 21 forks source link

change attachment insertion method #103

Closed JohntheLi closed 2 months ago

JohntheLi commented 2 months ago

instead of concatenating user attachment content to the existing user message, insert new user-role messages before the last user message. This provides better prompting for the LLM.

we keep the old concatenation method but mark it as deprecated for removal in future release. This is still a breaking change as the default is changing to use the new insertion method.