Conversation
Docker caches every layer, so if we do: ```bash RUN apt-get update RUN apt-get install xxx ``` We could run into a situation where the first `apt-get update` gets cached, and the `apt-get install` fails because it's using outdated links.
Member
|
Fair enough, thanks for this! |
luijait
pushed a commit
that referenced
this pull request
Apr 4, 2025
Updating screenshot to CDN link
luijait
pushed a commit
that referenced
this pull request
Apr 5, 2025
Fix issue with apt-get install
Closed
vmayoral
pushed a commit
that referenced
this pull request
Oct 14, 2025
Root cause: get_terminal_id() was checking thread-local storage first, which gets overwritten in async execution where multiple coroutines share the same thread. Solution: Modified get_terminal_id() in integration.py to check context variables first (properly isolated in async) before falling back to thread-local storage. Now: - Agent #1 outputs to Terminal 1 (left) - Agent #2 outputs to Terminal 2 (right) - Each terminal shows only its assigned agent's output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
vmayoral
pushed a commit
that referenced
this pull request
Oct 14, 2025
Root cause: get_terminal_id() was checking thread-local storage first, which gets overwritten in async execution where multiple coroutines share the same thread. Solution: Modified get_terminal_id() in integration.py to check context variables first (properly isolated in async) before falling back to thread-local storage. Now: - Agent #1 outputs to Terminal 1 (left) - Agent #2 outputs to Terminal 2 (right) - Each terminal shows only its assigned agent's output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
vmayoral
pushed a commit
that referenced
this pull request
Oct 14, 2025
Updating screenshot to CDN link
pzabalegui
added a commit
to pzabalegui/cai
that referenced
this pull request
Dec 10, 2025
- Added loop to display predefined models (Alias, Claude, OpenAI, DeepSeek, Ollama Cloud) before LiteLLM models - Models aliasrobotics#1-14 now correctly show predefined models - LiteLLM models start from aliasrobotics#15+ as expected - Added get_ollama_auth_headers() function in util.py for Ollama Cloud auth - Fixed model numbering to be consistent with global cache This resolves the issue where predefined models were skipped and only LiteLLM models appeared starting from aliasrobotics#15.
UnaiAlias
pushed a commit
that referenced
this pull request
Dec 10, 2025
* feat: Add Ollama Cloud integration with ollama_cloud/ prefix - Added support for Ollama Cloud models via AsyncOpenAI - Models use ollama_cloud/ prefix (e.g., ollama_cloud/gpt-oss:120b) - Reads OLLAMA_API_KEY and OLLAMA_API_BASE for cloud authentication - Added predefined Ollama Cloud models to /model-show - Filtered obsolete ollama/*-cloud models from LiteLLM database - Updated authentication headers in completer, banner, and toolbar - Added concise English documentation in docs/providers/ - Adapted to new global model cache architecture from #371 Modified files: - src/cai/sdk/agents/models/openai_chatcompletions.py - src/cai/repl/commands/model.py (adapted to global cache) - src/cai/util.py - src/cai/repl/commands/completer.py - src/cai/repl/ui/banner.py - src/cai/repl/ui/toolbar.py - docs/providers/ollama.md - docs/providers/ollama_cloud.md All existing functionality preserved (backward compatible). * fix: Add missing Ollama Cloud models and get_ollama_auth_headers - Added Ollama Cloud models to get_predefined_model_categories() - Added get_ollama_auth_headers() function to util.py - Added Ollama Cloud to category_to_provider mapping - Imported get_ollama_auth_headers in model.py This fixes the issue where predefined models weren't showing in /model-show. * fix: Display predefined models first in /model-show - Added loop to display predefined models (Alias, Claude, OpenAI, DeepSeek, Ollama Cloud) before LiteLLM models - Models #1-14 now correctly show predefined models - LiteLLM models start from #15+ as expected - Added get_ollama_auth_headers() function in util.py for Ollama Cloud auth - Fixed model numbering to be consistent with global cache This resolves the issue where predefined models were skipped and only LiteLLM models appeared starting from #15. * fix: Restore correct import of cai.caibench instead of pentestperf During rebase, the import was incorrectly changed from 'import cai.caibench as ptt' to 'import pentestperf as ptt'. This commit restores the correct import. The original code uses cai.caibench, not an external pentestperf module.
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.
Docker caches every layer, so if we do:
We could run into a situation where the first
apt-get updategets cached, and theapt-get installfails because it's using outdated links.The fix just put them together in the same line.