Open
Conversation
- POST /v1/models/pull/{provider}/{model_id} endpoint streams Ollama
/api/pull progress as NDJSON via FastAPI StreamingResponse
- pull_ollama_model() async generator in utils/models.py uses httpx to
stream from Ollama; yields error lines on connect/HTTP failure
- api_call.post_stream() in client for streaming POST requests
- Pull button added to Ollama model rows in the Models config tab;
pull_model_dialog() shows live progress via st.status()
Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Use per-row st.columns() instead of shared column containers so the Pull button always aligns with its model row regardless of whether adjacent rows have a Pull button or not. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Using force=True in get_models() ensures the UI always reflects current server state after enable/disable/delete operations. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Streamlit caches keyed widget values in session state and ignores the value= parameter on reruns. Pre-set the session state keys from the freshly-fetched model data before rendering the text_input widgets so the correct enabled status is always displayed. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Use sub-columns within the action column so Edit | Pull appear inline for Ollama models, matching the desired UI layout. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Use st.empty() so each progress update overwrites the previous line in place instead of appending a new one. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Query Ollama's /api/tags endpoint in update() to verify the model exists locally before allowing it to be enabled. Returns 422 with a clear message directing the user to the Pull button. Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Pull button to each Ollama model row in the Models config page, allowing users to download models directly from the GUI without needing to run ollama pull manually.
Changes: