Skip to content

Switch to edge config models defined in python-sdk#355

Merged
timmarkhuff merged 10 commits intomainfrom
tim/use-sdk-defined-config
Mar 20, 2026
Merged

Switch to edge config models defined in python-sdk#355
timmarkhuff merged 10 commits intomainfrom
tim/use-sdk-defined-config

Conversation

@timmarkhuff
Copy link
Copy Markdown
Contributor

@timmarkhuff timmarkhuff commented Mar 18, 2026

This PR removes the code defining Edge config and instead uses the edge config defined in python-sdk.

This is the first step in allowing the python-sdk to configure the edge.

Related PR: groundlight/python-sdk#413

@timmarkhuff timmarkhuff requested a review from a team as a code owner March 18, 2026 00:05
@timmarkhuff timmarkhuff requested a review from honeytung March 20, 2026 21:04
yaml_config = os.environ.get("EDGE_CONFIG", "").strip()
if yaml_config:
return _load_config_from_yaml(yaml_config)
return EdgeEndpointConfig.from_yaml(yaml_str=yaml_config)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may need some help testing this part. I need a properly formatted yaml string to test with.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested this end-to-end, and it works fine.

Copy link
Copy Markdown
Member

@honeytung honeytung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, make the code more consistent nice!

@timmarkhuff timmarkhuff merged commit 757260d into main Mar 20, 2026
14 checks passed
@timmarkhuff timmarkhuff deleted the tim/use-sdk-defined-config branch March 20, 2026 21:56
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.

2 participants