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

FIX: add viewport so artifacts render correctly on mobile #1056

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Conversation

SamSaffron
Copy link
Member

When sharing artifacts on mobile we had no viewport tag so
text would be TINY

When sharing artifacts on mobile we had no viewport tag so
text would be TINY
This is required for models such o1 that do not have streaming
enabled yet

It is good to carry this feature around in case various apis
decide not to support streaming endpoints
@@ -261,6 +282,10 @@ def xml_tools_enabled?
raise NotImplementedError
end

def disable_streaming?
@disable_streaming = llm_model.lookup_custom_param("disable_streaming")
Copy link
Contributor

@nattsw nattsw Jan 13, 2025

Choose a reason for hiding this comment

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

What will happen for existing llm models? Does this default to a false / blank?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure will add a double negative here, good call, no need for migration by default we don't disable so it is just "not disabled"

Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

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

Generally looks ok but I am not sure what the behaviour is now for existing models without the param.

Is a migration needed?

@SamSaffron SamSaffron merged commit 20612fd into main Jan 13, 2025
6 checks passed
@SamSaffron SamSaffron deleted the viewport branch January 13, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants