Skip to content

feat: Add OpenAI Codex Provider & improve LaTeX rendering - #288

Closed
sagnikonly wants to merge 1 commit into
HKUDS:mainfrom
sagnikonly:main
Closed

feat: Add OpenAI Codex Provider & improve LaTeX rendering#288
sagnikonly wants to merge 1 commit into
HKUDS:mainfrom
sagnikonly:main

Conversation

@sagnikonly

Copy link
Copy Markdown
Contributor

Description

Thank you for this incredible project! I've been using it locally and as a token of my appreciation, I wanted to contribute a feature I built for myself: OpenAI Codex Provider Integration.

  • Added OpenAICodexProvider to the LLM factory to natively support the ChatGPT backend-api.
  • Built a secure frontend auth flow with UI components (CodexSection.tsx) to handle and store session tokens safely.
  • Included backend API proxy routes (/api/codex/...) to cleanly route requests.
  • Added a patch to web/lib/latex.ts to improve Math LaTeX rendering specifically for complex outputs generated by Codex.

Related Issues

  • Related to the addition of more diverse provider integrations.

Module(s) Affected

  • agents
  • api
  • config
  • core
  • knowledge
  • logging
  • services
  • tools
  • utils
  • web (Frontend)
  • docs (Documentation)
  • scripts
  • tests
  • Other: ...

Checklist

  • I have read and followed the contribution guidelines.
  • My code follows the project's coding standards.
  • I have run pre-commit run --all-files and fixed any issues.
  • I have added relevant tests for my changes.
  • I have updated the documentation (if necessary).
  • My changes do not introduce any new security vulnerabilities.

Additional Notes

This was built to not interfere with existing OpenAI integrations, adding openai_codex cleanly to the registry. Let me know if any changes are needed!

@pancacake

Copy link
Copy Markdown
Collaborator

Thanks for that! Will take a look soon!

@sagnikonly

Copy link
Copy Markdown
Contributor Author

Thank You!

@pancacake

Copy link
Copy Markdown
Collaborator

Hi! We think the Codex part is not proper to be merged, for safety reasons. However, i love the latex rendering part. Maybe you could try split another pr about the LaTex rendering part independently, if available? After all, thanks for your contribution!

@pancacake pancacake closed this Apr 14, 2026
@sagnikonly

Copy link
Copy Markdown
Contributor Author

I completely understand and respect the safety concerns regarding the Codex integration. I'm glad you liked the LaTeX rendering improvements! I would be happy to split those into a separate, independent PR for you. I'll get that set up shortly. Thanks for the guidance!

@pancacake

Copy link
Copy Markdown
Collaborator

That's so nice! Welcome to DeepTutor community~

@sagnikonly

Copy link
Copy Markdown
Contributor Author

Done! I've created a new independent PR for the LaTeX rendering fixes as suggested. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants