Skip to content

feat(python): connect self-hosted chat models as policies - #71

Merged
nosam1998 merged 5 commits into
mainfrom
feat/python-self-hosted-model-policy
Oct 1, 2026
Merged

nosam1998 merged 5 commits into
mainfrom
feat/python-self-hosted-model-policy

Conversation

@nosam1998

@nosam1998 nosam1998 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Connect a caller-owned model through an OpenAI-compatible chat endpoint. ChatPolicy sends only the acting seat's observation, game rules and legal action strings, validates structured replies against the legal mask, and maps them to native action indices. Credentials come from a named environment variable; failures have stable redacted codes and Gym rolls back failed exchanges.

Validation: all eight CI workflows pass, including Linux/Windows/macOS HTTP protocol, malformed-response, authentication, timeout, redirect, size-limit and rollback tests. Tests use local HTTP fixtures; no paid model calls are made.

@nosam1998
nosam1998 changed the base branch from feat/python-model-action-views to main October 1, 2026 02:19
@nosam1998
nosam1998 marked this pull request as ready for review October 1, 2026 02:58
@nosam1998
nosam1998 merged commit 4d78d2b into main Oct 1, 2026
14 checks passed
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