Add models and naming convention to API docs and project description#186
Add models and naming convention to API docs and project description#186barun-saha merged 1 commit intomainfrom
Conversation
WalkthroughAdds comprehensive documentation for SlideDeck AI's model naming convention and supported LLMs. Updates include a detailed models.md guide, a provider-code reference table, and integration into the documentation structure via index.rst. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
README.md (1)
96-114: Replace generic "GPT" with a specific Azure OpenAI model identifier in both README.md and docs/models.md.The table entry at line 106 (README.md) and line 30 (docs/models.md) lists "GPT" for Azure OpenAI, which is inconsistent with the naming convention documented in the codebase and too generic compared to other entries like "GPT-4.1-mini" or "GPT-3.5 Turbo". The code configuration in
global_config.pyshows the pattern as[az]azure/open-ai, and the naming convention requires[code]model-nameformat. Update this entry to a specific model identifier such as[az]gpt-4oto match the pattern used throughout the table and provide a concrete example for users.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
docs/generated/slidedeckai.cli.rstis excluded by!**/generated/**docs/generated/slidedeckai.core.SlideDeckAI.rstis excluded by!**/generated/**
📒 Files selected for processing (3)
README.md(1 hunks)docs/index.rst(1 hunks)docs/models.md(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-23T04:32:09.863Z
Learnt from: barun-saha
Repo: barun-saha/slide-deck-ai PR: 139
File: helpers/llm_helper.py:70-84
Timestamp: 2025-09-23T04:32:09.863Z
Learning: Hugging Face model support has been discontinued in the slide-deck-ai project, so PROVIDER_HUGGING_FACE should remain commented out in GlobalConfig.VALID_PROVIDERS and validation should continue rejecting 'hf' providers.
Applied to files:
docs/models.mdREADME.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: test (3.11)
- GitHub Check: test (3.12)
- GitHub Check: test (3.10)
🔇 Additional comments (3)
docs/models.md (1)
1-13: Clear naming convention explanation that directly addresses PR objective.The explanation of the
[code]model-nameformat with two-character provider prefixes effectively communicates the naming convention. This directly fulfills issue #158's request to highlight the model naming format in documentation.docs/index.rst (1)
13-15: Proper documentation structure integration.Adding
models.mdto the "Getting Started" toctree section is appropriate and aligns well with the existing documentation structure alongside installation and usage guides.README.md (1)
90-90: Naming convention explanation clearly addresses issue #158.The addition of detailed explanation about the
[code]model-nameformat with concrete examples ([oa]for OpenAI,[gg]for Google Gemini) directly fulfills the requirement to "highlight model naming format in README."
| | LLM | Provider (code) | Requires API key | Characteristics | | ||
| |:------------------------------------|:-------------------------|:-------------------------------------------------------------------------------------------------------------------------|:-------------------------| | ||
| | Claude Haiku 4.5 | Anthropic (`an`) | Mandatory; [get here](https://platform.claude.com/settings/keys) | Faster, detailed | | ||
| | Gemini 2.0 Flash | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Faster, longer content | | ||
| | Gemini 2.0 Flash Lite | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Fastest, longer content | | ||
| | Gemini 2.5 Flash | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Faster, longer content | | ||
| | Gemini 2.5 Flash Lite | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Fastest, longer content | | ||
| | GPT-4.1-mini | OpenAI (`oa`) | Mandatory; [get here](https://platform.openai.com/settings/organization/api-keys) | Faster, medium content | | ||
| | GPT-4.1-nano | OpenAI (`oa`) | Mandatory; [get here](https://platform.openai.com/settings/organization/api-keys) | Faster, shorter content | | ||
| | GPT-5 | OpenAI (`oa`) | Mandatory; [get here](https://platform.openai.com/settings/organization/api-keys) | Slow, shorter content | | ||
| | GPT | Azure OpenAI (`az`) | Mandatory; [get here](https://ai.azure.com/resource/playground) NOTE: You need to have your subscription/billing set up | Faster, longer content | | ||
| | Command R+ | Cohere (`co`) | Mandatory; [get here](https://dashboard.cohere.com/api-keys) | Shorter, simpler content | | ||
| | Gemini-2.0-flash-001 | OpenRouter (`or`) | Mandatory; [get here](https://openrouter.ai/settings/keys) | Faster, longer content | | ||
| | GPT-3.5 Turbo | OpenRouter (`or`) | Mandatory; [get here](https://openrouter.ai/settings/keys) | Faster, longer content | | ||
| | DeepSeek-V3.1-Terminus | SambaNova (`sn`) | Mandatory; [get here](https://cloud.sambanova.ai/apis) | Fast, detailed content | | ||
| | Llama-3.3-Swallow-70B-Instruct-v0.4 | SambaNova (`sn`) | Mandatory; [get here](https://cloud.sambanova.ai/apis) | Fast, shorter | | ||
| | DeepSeek V3-0324 | Together AI (`to`) | Mandatory; [get here](https://api.together.ai/settings/api-keys) | Slower, medium-length | | ||
| | Llama 3.3 70B Instruct Turbo | Together AI (`to`) | Mandatory; [get here](https://api.together.ai/settings/api-keys) | Slower, detailed | | ||
| | Llama 3.1 8B Instruct Turbo 128K | Together AI (`to`) | Mandatory; [get here](https://api.together.ai/settings/api-keys) | Faster, shorter | |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
# Search for Azure OpenAI related configurations and model references
rg -i "azure|openai|gpt" docs/models.md -A 2 -B 2Repository: barun-saha/slide-deck-ai
Length of output: 3076
🏁 Script executed:
# Search for any model configuration or mapping in the codebase
fd -type f -name "*.md" -o -name "*.json" -o -name "*.py" -o -name "*.js" -o -name "*.ts" | head -20Repository: barun-saha/slide-deck-ai
Length of output: 238
🏁 Script executed:
# Look for Azure-specific configuration or constants
rg -i "azure.*openai|gpt.*azure" --type-add 'config:*.{json,yaml,yml,toml}' -t config -t py -t js -t tsRepository: barun-saha/slide-deck-ai
Length of output: 3402
🏁 Script executed:
# Search the entire docs directory for Azure-related recommendations
rg -i "azure|deployment" docs/ -B 2 -A 2Repository: barun-saha/slide-deck-ai
Length of output: 1227
🏁 Script executed:
# Check the README or setup documentation for Azure model guidance
fd -type f -name "*.md" | xargs grep -l -i "azure" | head -5Repository: barun-saha/slide-deck-ai
Length of output: 238
🏁 Script executed:
# Look for any Azure deployment examples or configurations
rg "deployment" --type mdRepository: barun-saha/slide-deck-ai
Length of output: 156
🏁 Script executed:
# Check if there's any example or reference to specific Azure deployment names
rg "gpt-4|gpt-35|gpt-4o" . --type md --type py --type jsonRepository: barun-saha/slide-deck-ai
Length of output: 1253
🏁 Script executed:
# Search for any Azure configuration examples in main app or docs
fd "*.md" | xargs grep -i "deployment" 2>/dev/nullRepository: barun-saha/slide-deck-ai
Length of output: 353
🏁 Script executed:
# Check the full context of Azure OpenAI configuration in global_config.py
grep -A 5 -B 5 "PROVIDER_AZURE_OPENAI" src/slidedeckai/global_config.py | head -30Repository: barun-saha/slide-deck-ai
Length of output: 896
Clarify the Azure OpenAI model identifier to follow the documented format.
The table lists "GPT" as the model name for Azure OpenAI, which is too generic and inconsistent with the documented [code]model-name format used elsewhere (e.g., [oa]gpt-4.1-mini, [gg]gemini-2.0-flash). For Azure OpenAI, specify an actual deployment name or model identifier like [az]gpt-4o, [az]gpt-4-turbo, or [az]gpt-35-turbo to provide users with clear, actionable guidance.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Closes #158.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.