Skip to content

Dev madina#177

Open
madina1203 wants to merge 10 commits into
devfrom
dev_madina
Open

Dev madina#177
madina1203 wants to merge 10 commits into
devfrom
dev_madina

Conversation

@madina1203
Copy link
Copy Markdown
Collaborator

No description provided.

lfnothias and others added 9 commits May 5, 2026 16:27
MetaboT v1.1 0 Update dependencies, replace code interpreter, some other improvements
Update model IDs and base URLs in params.ini for consistency
- Remove unused sections (llm_preview, llm_gpt_5, llm_o1) whose ids
  duplicated other sections and were never retrieved at runtime.
- Rename [llm_o3_mini] -> [llm_mini] so the section name matches its
  actual model id (gpt-5.4-mini); update the SPARQL improvement chain,
  test fixture, and docs accordingly.
- Set temperature=1 for gpt-5.5 sections (llm_o, llm_litellm_openai);
  the API rejects temperature=0 for that model, which was crashing
  agent runs with a 400 unsupported_value error.
- Trim llm_handler.py section list to ["llm_o", "llm_mini"] so the
  module no longer references removed sections.
  dev_madinaMerge remote-tracking branch 'origin/dev_madina' into dev_madina
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 6, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ebe9dea4-4a25-423d-9d58-8c98e2d234f6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev_madina

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Clean up LLM configuration and fix gpt-5.5 temperature validation

🐞 Bug fix ✨ Enhancement

Grey Divider

Walkthroughs

Description
• Consolidate LLM configuration by removing duplicate/unused sections
• Rename llm_o3_mini to llm_mini for consistency with model ID
• Fix gpt-5.5 temperature from 0 to 1 to resolve API validation errors
• Update model IDs for LiteLLM providers (Gemini, Mistral, OpenAI)
• Add LangSmith Evaluation documentation to navigation
Diagram
flowchart LR
  A["params.ini<br/>LLM Config"] -->|Remove duplicates| B["Consolidated<br/>Sections"]
  A -->|Fix temperature| C["gpt-5.5<br/>temp=1"]
  D["tool_sparql.py<br/>llm_o3_mini"] -->|Rename| E["llm_mini"]
  F["llm_handler.py<br/>Section list"] -->|Trim| G["llm_o, llm_mini"]
  H["mkdocs.yml"] -->|Add| I["LangSmith docs"]
Loading

Grey Divider

File Changes

1. app/config/params.ini ⚙️ Configuration changes +5/-26

Consolidate LLM sections and fix temperature validation

• Remove unused LLM sections: llm_preview, llm_gpt_5, llm_o1 (duplicated configurations)
• Rename [llm_o3_mini] to [llm_mini] to match actual model ID gpt-5.4-mini
• Change gpt-5.5 temperature from 0 to 1 (API rejects temperature=0 for this model)
• Update LiteLLM model IDs: Gemini to gemini-3-pro-preview, Mistral to mistral-large-latest, OpenAI
 to gpt-5.5

app/config/params.ini


2. app/core/llm_handler.py ⚙️ Configuration changes +1/-1

Reduce LLM handler to active sections only

• Trim sections list from 6 entries to 2: ["llm_o", "llm_mini"]
• Remove references to deleted configuration sections

app/core/llm_handler.py


3. app/core/agents/sparql/tool_sparql.py 🐞 Bug fix +1/-1

Update SPARQL chain to use renamed LLM key

• Update SPARQL improvement chain to use llm["llm_mini"] instead of llm["llm_o3_mini"]
• Align with renamed configuration section

app/core/agents/sparql/tool_sparql.py


View more (2)
4. app/core/tests/test_sparql_tool.py 🧪 Tests +1/-1

Update test fixture for renamed LLM key

• Update test fixture to use llm_mini instead of llm_o3_mini
• Maintain consistency with renamed configuration

app/core/tests/test_sparql_tool.py


5. mkdocs.yml 📝 Documentation +1/-0

Add LangSmith evaluation documentation reference

• Add LangSmith Evaluation documentation link to Examples section

mkdocs.yml


Grey Divider

Qodo Logo


Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • @qodo-code-review
    Copy link
    Copy Markdown

    qodo-code-review Bot commented May 6, 2026

    Code Review by Qodo

    🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

    Grey Divider


    Remediation recommended

    1. Temperature raises runtime error risk ✓ Resolved 🐞 Bug ☼ Reliability
    Description
    Default temperatures for llm_o and llm_mini are now 1, increasing output variance for supervisor
    routing and SPARQL generation. This raises the likelihood of malformed structured outputs (parser
    failures) or invalid SPARQL (ValueError from graph.query), which will fail the workflow execution
    path.
    
    Code

    app/config/params.ini[R1-9]

    [llm_o]
    id = gpt-5.5
    -temperature = 0
    +temperature = 1
    max_retries = 3
    
    -
    [llm_mini]
    id = gpt-5.4-mini
    -temperature = 0
    -max_retries = 3
    -
    -[llm_o3_mini]
    -id = gpt-5.4-mini
    -temperature = 1
    -max_retries = 3
    -
    -[llm_gpt_5]
    -id = gpt-5.5
    -temperature = 1
    -max_retries = 3
    -
    -[llm_o1]
    -id = gpt-5.5
    temperature = 1
    max_retries = 3
    Evidence
    The configuration now sets temperature=1 for both llm_o and llm_mini, which are used directly for
    (a) supervisor routing via strict function-call JSON parsing and (b) SPARQL generation/improvement
    whose raw text is executed against the graph. Failures in either path bubble up as exceptions (no
    local recovery around these calls).
    

    app/config/params.ini[1-9]
    app/core/agents/supervisor/agent.py[14-56]
    app/core/agents/sparql/tool_sparql.py[237-314]
    app/core/graph_management/RdfGraphCustom.py[134-159]


    Grey Divider

    Qodo Logo

    @dosubot dosubot Bot added Configuration changes documentation Improvements or additions to documentation labels May 6, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    Configuration changes documentation Improvements or additions to documentation size:M This PR changes 30-99 lines, ignoring generated files.

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants