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)

Sorry, something went wrong.

hakimifr and others added 4 commits April 14, 2024 01:38

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi
* 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.

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi
Signed-off-by: Pratham Dubey <134331217+prathamdby@users.noreply.github.com>
Adapt to the logging format in line with the rest of the bot as well.

Signed-off-by: Pratham Dubey <134331217+prathamdby@users.noreply.github.com>
Update the example .env file. Drop all of the G4F-related codebase. Clean up some parts of the codebase.

Signed-off-by: Pratham Dubey <134331217+prathamdby@users.noreply.github.com>
Run the isort tool to sort out the project's import statements.

Signed-off-by: Pratham Dubey <134331217+prathamdby@users.noreply.github.com>
@hakimifr hakimifr added the enhancement Enhancement to existing features label Apr 15, 2024
hakimifr added 10 commits April 23, 2024 15:43

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi
* Now that we no longer use g4f

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi

Verified

This commit was signed with the committer’s verified signature.
hakimifr Hakimi
…bust mechanism for command-files data

* Revert back to storing raw cmd data dict. Leave the class though,
  as it can be used to parse the data when needed.
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.

None yet

3 participants