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

Changes to support upcoming GeminiLiveWebSocket transport #15

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

kompfner
Copy link
Contributor

@kompfner kompfner commented Jan 2, 2025

No description provided.

@kompfner kompfner requested a review from filipi87 January 2, 2025 20:32
@@ -6,7 +6,7 @@ open class RTVIClient {

private let options: RTVIClientOptions
private var transport: Transport
private var baseUrl: String
private var baseUrl: String? // see RTVIClientParams for explanation of optionality
Copy link
Contributor

Choose a reason for hiding this comment

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

If I’m not mistaken, we have already removed this option from our JavaScript SDK.

Since you are already making changes, would it be worthwhile to remove it here as well now? Or should we include its removal as part of this task, along with a couple of other small refactors needed in our iOS SDK?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I see. Looks like in the JS SDK baseUrl now lives nested under params only and not at the "top level", is that right?

I wasn't necessarily looking to make any breaking changes with this PR; maybe we could save this cleanup for the next batch of work?

@@ -59,6 +59,17 @@ public struct RTVIMessageOutbound: Encodable {
)
}

// Decode action data, if this outbound message represents an action request.
// This is useful for implementing transports that can intercept and handle action requests in their own way.
public func decodeActionData() -> ActionRequest? {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are we using it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@filipi87 filipi87 left a comment

Choose a reason for hiding this comment

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

Just a couple of minor questions, but that I believe I will understand better when looking at the Gemini project. Other than that, all looks good.

@kompfner
Copy link
Contributor Author

kompfner commented Jan 3, 2025

I will understand better when looking at the Gemini project

Agree, it might be helpful to look at the Gemini transport to understand why the changes here are helpful. Let me know if you want to do a code walkthrough first before merging this!

@kompfner kompfner merged commit d2d9946 into main Jan 3, 2025
@kompfner kompfner deleted the changes-to-support-gemini-live-websocket-transport branch January 3, 2025 21:52
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