Skip to content

fix(create_session): ensure a project_id is set #1

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

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

charlypoly
Copy link
Contributor

Matches the changes introduced in the Node.js SDK: browserbase/js-sdk#6

@charlypoly charlypoly requested a review from mishushakov June 4, 2024 10:57
@charlypoly charlypoly self-assigned this Jun 4, 2024
@charlypoly charlypoly merged commit a074034 into main Jun 5, 2024
@@ -140,6 +140,9 @@ def create_session(self, options: Optional[CreateSessionOptions] = None) -> Sess
if options:
payload.update(options.model_dump(by_alias=True, exclude_none=True))

if not options['projectId']:
Copy link
Contributor

Choose a reason for hiding this comment

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

should be if not payload['projectId']

@mishushakov
Copy link
Contributor

Sorry, forgot to submit my review 😅

@maxbeatty maxbeatty deleted the create-session-ensure-project-id branch June 26, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants