Skip to content

Conversation

@thiago-aixplain
Copy link
Contributor

No description provided.

@thiago-aixplain thiago-aixplain marked this pull request as ready for review April 29, 2025 16:17
) -> ModelResponseStreamer:
assert self.supports_streaming, f"Model '{self.name} ({self.id})' does not support streaming"
payload = build_payload(data=data, parameters=parameters, stream=True)
url = f"{self.url}/{self.id}".replace("api/v1/execute", "api/v2/execute")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have a warning around this?
I suppose only v2 supports streaming that is why?

@thiago-aixplain thiago-aixplain merged commit de6a1c4 into development May 9, 2025
@thiago-aixplain thiago-aixplain deleted the ENG-2028-modelStreaming branch May 9, 2025 17:08
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.

3 participants