- Added a new RunPod client to the project.
- Updated the example to use the new client.
- Improved error handling in the client.
- Refactored the code for better readability.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Add support for creating spot pods using the RunPod API.
- Implement `create_spot_pod` function in the `RunPod` client.
- Refactor RunPod client to handle different query types and response structures.
- Improve error handling and logging for GraphQL requests.
- Update example to demonstrate spot pod creation.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Refactor RunPod client to use generics for requests and
responses.
- This improves code readability and maintainability.
- Remove redundant code for building GraphQL queries and
handling HTTP requests.
- Add support for environment variables in pod creation.
- Update example with new API key and environment variables.
Co-authored-by: supermario <mariobassem12@gmail.com>
- Add a new RunPod client to the project.
- This client allows users to interact with the RunPod API to create and manage pods.
- Includes example usage and configuration options.
- Correct the `generator` command to use a string flag for the path.
- Update templates to use correct heap allocation annotation.
- Remove unnecessary code in templates.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Improve the logger test to include more specific assertions.
- Add timestamp filtering to the logger search function.
- Fix a bug in the logger search function that prevented it from correctly handling continuation lines.
- Update redisclient tests to use the correct return type.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Refactor the redis client to use a mutex for thread safety.
- Improve error handling in context and playbook factory.
- Remove the play_mdbook command and associated tests.
- Add play_publisher command and tests for publishing books.
- Update the repository cache to use a reference to the redis client.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Refactor the rclone client factory to improve its
organization and functionality.
- Add support for multiple rclone instances with named
instances.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Updated the OpenAI client to use environment variables for API keys.
- Improved the configuration and management of OpenAI clients.
- Added retry mechanism to HTTP requests for improved reliability.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Replace `lut.incremental!` with a safer check using `if v := lut.incremental`.
- This ensures that the test doesn't panic if `incremental` is unexpectedly nil.
- The new assertions explicitly check for the existence of a value and its correctness.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Remove unnecessary parameter from `errors_report` function.
- Pass `Collection` by mutable reference to `export` function.
- Fix `.collection` file content in export test.
- Update test cases to reflect changes.
- Correct path in test data.
- Use mutable reference for `col` in `Tree.export`.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>