Skip to content

Sanitize message payload for Pollinations API#48

Merged
G-Fourteen merged 1 commit intomainfrom
codex/fix-model-inputs-and-cleanup
Sep 16, 2025
Merged

Sanitize message payload for Pollinations API#48
G-Fourteen merged 1 commit intomainfrom
codex/fix-model-inputs-and-cleanup

Conversation

@G-Fourteen
Copy link
Collaborator

Summary

  • sanitize the chat history before sending it to Pollinations so only relevant roles and content are included
  • convert stored ai roles to the OpenAI-compatible assistant role when building requests
  • include system instructions and stored memories only when present so the model receives minimal context

Testing

  • npm test

https://chatgpt.com/codex/tasks/task_b_68c907b5defc8329bba93815c18dae23

@G-Fourteen G-Fourteen merged commit f8534f5 into main Sep 16, 2025
@G-Fourteen G-Fourteen deleted the codex/fix-model-inputs-and-cleanup branch September 16, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant