-
Notifications
You must be signed in to change notification settings - Fork 105
Add Environment Variable for Ray port #315
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
Add Environment Variable for Ray port #315
Conversation
Review by Korbit AIKorbit automatically attempts to detect when you fix issues in new commits.
Files scanned
|
| RAY_PUBLIC_DASHBOARD = os.environ.get("RAY_PUBLIC_DASHBOARD", "false") == "true" | ||
| RAY_DASHBOARD_PORT = os.environ.get("RAY_DASHBOARD_PORT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coded Configuration 
Tell me more
What is the issue?
Configuration values are defined at module level and directly dependent on environment variables, making the code less flexible and harder to test.
Why this matters
Hard-coded configuration reduces reusability and makes testing more difficult as it requires environment manipulation.
Suggested change ∙ Feature Preview
Move configuration to a dedicated config class or function:
def get_ray_config(config_dict=None):
config = config_dict or {}
return {
'dashboard_public': config.get('RAY_PUBLIC_DASHBOARD', os.environ.get('RAY_PUBLIC_DASHBOARD', 'false') == 'true'),
'dashboard_port': config.get('RAY_DASHBOARD_PORT', os.environ.get('RAY_DASHBOARD_PORT'))
}Provide feedback to improve future suggestions
💬 Looking for more details? Reply to this comment to chat with Korbit.
amanjaiswal73892
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! It will be useful to document these variables in the readme along with the other variables.
* fixes * add new deps * use external embedding service in task hints retrieval * gpt5 fixes * first cut * update * add event listeners and launcher * Add codegen step-wise recoder agent * adding task hints to generic agent * fix repeated llm configs * load env vars in codegen agent * same hints retrieval for both generic and tooluse agents * filter out current task hints if needed * fix llm config, add gpt-5 * fix * pass new flag and fix db path passing issue * fix goal text * fix current task hints exclusion * remove old reqs * remove recorder from that brach * log task errors * expore agentlabxray * remove commented old chunk * share xray only when env flag present * Add StepWiseQueriesPrompt for enhanced query handling in GenericAgent * update hinting agent retrieval * stepwise hint retrieval * added shrink method * (wip) refactor hinting index * (wip) clean up prompt file * add scripts to run generic and hinter agents, update tmlr config for hinter * move HintsSource to separate hinting file * update hinter agent and prompt * fix prompt for task hint * undo changes to tmlr config * update hinter agent * formatting * bug fix hint retrieval * improve launch script * get queries only for step level hint * Add webarenalite to agentlab loop.py * update stepwise hint queries prompt * fix exc logging * non empty instruction * allow less then max hint queries * add generic agent gpt5-nano config * make ray available on toolkit * check that hints db exists * Fix assignment of queries_for_hints variable * Improve generic agent hinter (#309) * Make LLM retreival topic index selection more robust * add new flag to skip hints with the current goal in the hint source t… (#310) * add new flag to skip hints with the current goal in the hint source traces * Rename generic agent hinter to hint_use_agent (#311) * rename generic_agent_hinter to hint_use_agent for clarity * Add deprecation warning and module alias for generic_agent_hinter * improve module aliasing for submodules * Add todo rename agent name * black * bugfix: check for hint_db only when use_task_hint is true. * fix: address missing initialization and correct args reference in choose_hints method * black * bugfix: skip HintSource init if use_task_hint is false * Fix incorrect references for docs retrieval hinter agent (#313) * address comments * format * Add Environment Variable for Ray port (#315) * add env variable for ray port * document env variables * undo removed llm_config * undo unnessary change * add missing default values for hint prompt flags * black * update names in scripts * use default prompt in hintSource for Tool Use agent * remove experiment scripts --------- Co-authored-by: Oleh Shliazhko <oleh.shliazhko@servicenow.com> Co-authored-by: Hadi Nekoei <had.nekoeiqachkanloo@servicenow.com> Co-authored-by: Oleh Shliazhko <ollmer@users.noreply.github.com> Co-authored-by: recursix <alex.lacoste.shmu@gmail.com> Co-authored-by: Patrice Bechard <patrice.bechard@servicenow.com> Co-authored-by: Hadi Nekoei <hadinekoei94@gmail.com> Co-authored-by: Patrice Bechard <bechardpatrice@gmail.com>
No description provided.