Commit Graph

2027 Commits

Author SHA1 Message Date
Mahmoud Emad
50116651de feat: Add spot pod start and improved error handling
- Added functionality to start spot pods using the RunPod API.
- Improved error handling and clarity in the RunPod client.
- Added more detailed comments to the code for better readability.
- Refactored the HTTP client and utils to improve modularity.
- Updated example to demonstrate spot pod creation and starting.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 12:38:25 +02:00
Mahmoud Emad
3fe350abe9 feat: Add RunPod start and improved pod creation
- Added a new `start_on_demand_pod` function to the RunPod client.
- Improved the `create_on_demand_pod` function to handle nested machine structure in the response.
- Updated the example to use the new functions and handle the new response structure.
- Updated the API key for the example.
- Added more descriptive field names in the `create_on_demand_pod` input.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 11:32:38 +02:00
Mahmoud Emad
9e51604286 feat: enhance RunPod example with detailed pod creation
- Added more options to the RunPod example, including:
- `cloud_type`, `gpu_count`, `volume_in_gb`,
- `container_disk_in_gb`, `min_vcpu_count`,
- `min_memory_in_gb`, `gpu_type_id`, `ports`, and
- `volume_mount_path`.  This provides a more
- comprehensive demonstration of RunPod's capabilities.
- Updated the example to create an on-demand pod with
- specified resources and settings.  The spot pod
- creation remains largely unchanged.  Improved the
- clarity and completeness of the example.  Removed
- commented-out code for better readability.  Also
- updated the `PodFindAndDeployOnDemandRequest` struct
- to remove default values, allowing for more flexible
- pod configurations.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 11:03:33 +02:00
Mahmoud Emad
309496ef5d feat: Add RunPod client
- 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>
2025-01-21 10:50:07 +02:00
timurgordon
d403f84b6c fix osis compilation 2025-01-21 02:37:05 +00:00
timurgordon
dfeeb8cd4c add example actor generation from example specification 2025-01-21 02:36:31 +00:00
timurgordon
135866e5b0 add actor openapi interface swagger ui support 2025-01-21 02:32:33 +00:00
timurgordon
eef88b5375 better support for parsing generating numeric types 2025-01-21 02:30:38 +00:00
timurgordon
8b9717bb74 implement openrpc & openapi examples support 2025-01-21 02:29:23 +00:00
4422d67701 wip: add spot pod creation
- 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>
2025-01-20 21:34:16 +02:00
Mahmoud Emad
d54a1e5a34 refactor: improve RunPod client
- 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>
2025-01-20 15:02:05 +02:00
Mahmoud Emad
0d2307acc8 feat: add RunPod client
- 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.
2025-01-19 22:20:47 +02:00
Mahmoud Emad
de45ed3a07 refactor: remove dependency on herolib.osal
- Replaced `freeflowuniverse.herolib.osal` with `freeflowuniverse.herolib.core`
2025-01-19 09:48:05 +02:00
03e5a56d62 Merge pull request #23 from freeflowuniverse/development_release
feat: support macos in ci
2025-01-17 17:06:26 +02:00
991135becb feat: add release workflow v0.0.1 2025-01-17 16:52:34 +02:00
50d06cf649 feat: support macos in ci 2025-01-17 16:52:34 +02:00
480894372c export docker 2025-01-17 05:04:30 +01:00
0bf0e5bac5 Merge pull request #25 from freeflowuniverse/development_grid_deployer
Development grid deployer
2025-01-15 18:58:15 +02:00
3812052ffa chore(tfgrid3deployer): improve example and logging 2025-01-15 18:52:48 +02:00
5256ab6f23 refactor(tfgrid3deployer): use more reliable nodes
- pick reliable nodes by pinging them before attempting deployment
2025-01-15 17:59:15 +02:00
98ce764992 refactor(gridproxy): use native options
- use native option types in filters intead of own option types
- reflect changes across dependant modules
2025-01-15 16:19:13 +02:00
dac062eee9 fix(generic): remove erroneous log message 2025-01-15 13:02:03 +02:00
1da8a2d319 feat(tfgrid3deployer): add delete method for deployments
- add a delete method for deployments which deletes all deployment
  contracts
- improve logging messages
- update examples according to changes
2025-01-15 13:00:04 +02:00
dc47c81b0c chore: remove old deployer code 2025-01-15 12:59:02 +02:00
babb114bcb refactor: regenerate tfgrid3deployer client code 2025-01-15 12:57:49 +02:00
b87185adb3 ... 2025-01-15 00:09:04 +01:00
b473c787e0 ... 2025-01-15 00:07:38 +01:00
f55654b3d4 ... 2025-01-14 23:59:29 +01:00
c2fa4f68d1 Merge branch 'development' of https://github.com/freeflowuniverse/herolib into development 2025-01-14 23:12:56 +01:00
d9e2d5ca8c docker 2025-01-14 23:12:54 +01:00
fa0dac57ec Merge pull request #24 from freeflowuniverse/development_grid
fix: use redis client reference in threefold grid module
2025-01-14 18:44:45 +02:00
55fc87d9f2 fix: use redis client reference in threefold grid module 2025-01-14 18:33:22 +02:00
c1e17d762d Merge pull request #22 from freeflowuniverse/development_hero_mdbook
fix: fix hero mdbook command
2025-01-14 15:42:13 +02:00
de102f33d9 fix: fix hero mdbook command 2025-01-14 15:34:02 +02:00
6a3e3a1177 Merge pull request #21 from freeflowuniverse/development_hero_git
refactor: remove unused url flag
2025-01-14 14:11:42 +02:00
e255d6ed65 refactor: remove unused url flag
- Removed the unused `url` flag from the hero CLI.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-14 14:06:51 +02:00
d9e4f49852 Merge pull request #20 from freeflowuniverse/development_ci_add_sudo
fix: add sudo to commands run in ci
2025-01-14 13:50:21 +02:00
0e449d7064 fix: update ci build workflow 2025-01-14 13:41:26 +02:00
5f13693160 ssh init 2025-01-14 12:22:17 +01:00
2a673553f1 fix hero for git 2025-01-14 11:53:28 +01:00
0674fa56b9 rename 2025-01-14 10:59:19 +01:00
3b71b7f1ca Merge branch 'development' of https://github.com/freeflowuniverse/herolib into development 2025-01-14 10:55:06 +01:00
8128f4c2f7 dockers are working with vscode 2025-01-14 10:55:02 +01:00
bb25b7663d Merge pull request #19 from freeflowuniverse/development_hero_generate
fix: correct generator command and templates
2025-01-14 11:47:36 +02:00
0b780b6901 fix: correct generator command and templates
- 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>
2025-01-14 11:41:50 +02:00
23c1456e7e docker creators 2025-01-14 10:25:35 +01:00
e1c93e8f98 Merge branch 'development' of https://github.com/freeflowuniverse/herolib into development 2025-01-14 06:26:13 +01:00
9c5fc9e65c git ignore 2025-01-14 06:26:09 +01:00
dac3b61116 Merge pull request #18 from freeflowuniverse/development_actions
Development actions
2025-01-13 18:59:22 +02:00
b101aee0ed chore: remove unused libs and add openai client
- Remove incorrect test paths.
- Ignore OpenAI client tests.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-13 18:52:29 +02:00