cai/docs
pzabalegui da1c6202e5
feat: Add Ollama Cloud integration with ollama_cloud/ prefix (#372)
* 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.
2025-12-10 15:42:48 +01:00
..
assets docs: add four new case studies to README (Unitree G1, Dragos CTF, HackerOne, PortSwigger) (#345) 2025-11-14 12:34:46 +01:00
benchmarking minor improvements in docs 2025-11-02 14:24:16 +00:00
cai [Doc]: fixing typos in different files (#359) 2025-12-04 05:19:48 +01:00
cli [Doc]: fixing typos in different files (#364) 2025-12-08 09:16:53 +01:00
media Add Mobile UI docs 2025-12-02 15:17:41 +01:00
mui Add Mobile UI docs 2025-12-02 15:17:41 +01:00
providers feat: Add Ollama Cloud integration with ollama_cloud/ prefix (#372) 2025-12-10 15:42:48 +01:00
ref tools api 2025-05-14 12:06:08 +02:00
stylesheets docs: Add comprehensive CAI PRO documentation, CLI section and improve website styling (#333) 2025-11-05 19:31:54 +01:00
tui Add Mobile UI docs 2025-12-02 15:17:41 +01:00
voice Fix paths in docs 2025-03-28 08:35:25 +01:00
Installation_Guide_for_CAI_Pro_v0.5.md Add installation guides in Markdown format for CAI Pro v0.5 and v0.6 (#312) 2025-11-06 06:03:09 +01:00
Installation_Guide_for_CAI_Pro_v0.6.md Add installation guides in Markdown format for CAI Pro v0.5 and v0.6 (#312) 2025-11-06 06:03:09 +01:00
agents.md [Doc]: fixing typos in different files (#359) 2025-12-04 05:19:48 +01:00
api.md Add API capabilities in PRO to docs 2025-11-19 13:10:07 +01:00
cai_architecture.md [Doc]: fixing typos in different files (#364) 2025-12-08 09:16:53 +01:00
cai_benchmark.md [Doc]: fixing typos in different files (#359) 2025-12-04 05:19:48 +01:00
cai_citation_and_acknowledgments.md new brnach 2025-05-14 11:18:48 +02:00
cai_development.md dev 2025-05-14 12:05:30 +02:00
cai_faq.md add faq license 2025-06-18 08:28:34 +00:00
cai_find_us.md new brnach 2025-05-14 11:18:48 +02:00
cai_installation.md Rework documentation a bit, structure and aesthetics 2025-11-01 18:21:14 +00:00
cai_list_of_models.md Rework documentation a bit, structure and aesthetics 2025-11-01 18:21:14 +00:00
cai_pro.md [Doc]: fixing typos in different files (#359) 2025-12-04 05:19:48 +01:00
cai_pro_alias1.md docs: Add comprehensive CAI PRO documentation, CLI section and improve website styling (#333) 2025-11-05 19:31:54 +01:00
cai_pro_contact.md [Doc]: fixing typos in different files (#364) 2025-12-08 09:16:53 +01:00
cai_pro_features.md docs: Add comprehensive CAI PRO documentation, CLI section and improve website styling (#333) 2025-11-05 19:31:54 +01:00
cai_pro_pricing.md docs: Add comprehensive CAI PRO documentation, CLI section and improve website styling (#333) 2025-11-05 19:31:54 +01:00
cai_pro_quickstart.md docs: Add comprehensive CAI PRO documentation, CLI section and improve website styling (#333) 2025-11-05 19:31:54 +01:00
cai_prompt_injection.md Prompt injection mitigation (#249) 2025-08-28 20:25:24 +02:00
cai_quickstart.md Document --continue mode 2025-11-14 12:41:43 +01:00
config.md Fix paths in docs 2025-03-28 08:35:25 +01:00
context.md [Doc]: fixing typos in different files (#364) 2025-12-08 09:16:53 +01:00
continue_mode.md Document --continue mode 2025-11-14 12:41:43 +01:00
council.md Added Council Docs (#355) 2025-12-01 17:42:07 +01:00
environment_variables.md Add C99 tool to docs 2025-11-14 12:54:16 +01:00
examples.md formatting updates to examples doc 2025-03-19 14:23:28 -07:00
guardrails.md new brnach 2025-05-14 11:18:48 +02:00
handoffs.md new brnach 2025-05-14 11:18:48 +02:00
index.md Add Mobile UI docs 2025-12-02 15:17:41 +01:00
index2.md new brnach 2025-05-14 11:18:48 +02:00
mcp.md new brnach 2025-05-14 11:18:48 +02:00
models.md Fix paths in docs 2025-03-28 08:35:25 +01:00
multi_agent.md [Doc]: fixing typos in different files (#359) 2025-12-04 05:19:48 +01:00
quickstart.md Fix paths in docs 2025-03-28 08:35:25 +01:00
research.md Rework documentation a bit, structure and aesthetics 2025-11-01 18:21:14 +00:00
results.md Fix docs 2025-03-28 07:55:41 +01:00
running_agents.md new brnach 2025-05-14 11:18:48 +02:00
streaming.md new brnach 2025-05-14 11:18:48 +02:00
tools.md Add C99 tool to docs 2025-11-14 12:54:16 +01:00
tracing.md Add some bits to docs 2025-05-14 14:44:23 +02:00
tracing_cai.md restructure 2025-05-14 11:25:55 +02:00
usage_tracking.md Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
visualization.md Update visualization.md 2025-03-25 13:34:45 -04:00