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

feat: added SHINKAI_NODE_LOCATION #68

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

agallardol
Copy link
Contributor

@agallardol agallardol commented Nov 23, 2024

This PR introduces several enhancements to the Deno runner:

  1. Added support for configuring the Shinkai Node location via the ShinkaiNodeLocation struct. This allows specifying the protocol, host, and port of the Shinkai Node.

  2. Introduced the RunnerType enum to specify whether to run Deno in the host or Docker environment. The force_deno_in_host option has been replaced with force_runner_type to accommodate this change.

  3. Updated the run method in DenoRunner to respect the force_runner_type option. If not specified, it falls back to the previous behavior of running in Docker if available, otherwise in the host.

  4. Modified the Deno execution environment to pass the SHINKAI_NODE_LOCATION environment variable, allowing the running code to access the configured Shinkai Node location.

  5. Added tests to verify the behavior of running with different Shinkai Node locations in both host and Docker environments.

These changes provide more flexibility in configuring the Deno runner and enable seamless integration with the Shinkai Node, regardless of the execution environment.

@agallardol agallardol merged commit 0084cb8 into main Nov 23, 2024
1 check failed
@agallardol agallardol deleted the agallardol/shinkai-node-location branch November 23, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant