Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite - Migrate from g4f to ChatGPT's proxy, utilising OpenAI's official api package #21

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

hakimifr
Copy link
Member

@hakimifr hakimifr commented Apr 14, 2024

Progress Tracker

  • Migration of codebase

    • Add openai dependency
    • Remove traces of g4f and migrate to openai's package
    • Remove g4f dependency
    • Ensure consistency of lock file
  • Proxy server

    • Add the proxy server as git submodule
    • Change base URL of the openai package to the proxy's
    • Testing the server
      • Make sure completion work
      • Ensure no regression caused to the reply-tracker (context-keeping)

hakimifr and others added 4 commits April 14, 2024 01:38
* The fork gets updated frequently, and as
  a result, the poetry.lock's hash often get
  mismatched whenever it does. Tracking our
  own fork allows us to controllably sync
  changes and update the lock file accordingly.
Adapt to the logging format in line with the rest of the bot as well.

Signed-off-by: Pratham Dubey <[email protected]>
Update the example .env file. Drop all of the G4F-related codebase. Clean up some parts of the codebase.

Signed-off-by: Pratham Dubey <[email protected]>
Run the isort tool to sort out the project's import statements.

Signed-off-by: Pratham Dubey <[email protected]>
@hakimifr hakimifr added the enhancement Enhancement to existing features label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants