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

Save and upload logs from bot run #23

Open
ErikBjare opened this issue Nov 2, 2023 · 3 comments
Open

Save and upload logs from bot run #23

ErikBjare opened this issue Nov 2, 2023 · 3 comments
Labels
bug Something isn't working ci

Comments

@ErikBjare
Copy link
Owner

  • Include logs in PR message (as <details>)
  • Logs are stored in ~/.local/share/gptme/logs/<conversation name>/conversation.jsonl
@ErikBjare ErikBjare added the ci label Nov 2, 2023
@ErikBjare
Copy link
Owner Author

@gptme patch .github/workflows/bot.yml to implement this. Read the log from the .jsonl file. Each line has role and content keys.

When the log is written to the issue inside the <details>, it should be converted to f"{role}: {content}\n" for each line.

Don't try to commit the changes.

@ErikBjare
Copy link
Owner Author

@gptme now check if there's something left to do, apply patches if so

@ErikBjare ErikBjare added the bug Something isn't working label Jan 20, 2024
@ErikBjare
Copy link
Owner Author

Could now be easily implemented via: #235

Just run gptme -r -n '/export log.html' after the conversation to export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci
Projects
None yet
Development

No branches or pull requests

1 participant