Skip to content

438 bug fixes#446

Merged
ViliTajnic merged 8 commits intomainfrom
438-bug-fixes
Apr 14, 2026
Merged

438 bug fixes#446
ViliTajnic merged 8 commits intomainfrom
438-bug-fixes

Conversation

@gotsysdba
Copy link
Copy Markdown
Member

No description provided.

ViliTajnic and others added 6 commits April 14, 2026 10:12
…reset on import, DB alias sync, testbed 503 crash

- ollama.py: detect embedding models by 'embed' in name (catches qwen3-embedding,
  mxbai-embed-large which report non-embed families)
- litellm_utils.py: strip ':latest' tag when matching Ollama models so a vector
  store saved as 'ollama/model:latest' resolves correctly
- settings.py (import): preserve usable=True for existing DB configs when
  connection-relevant fields are unchanged; only reset on actual credential changes
- databases.py: sync client_settings.database.alias on every page load and on
  "no changes" save-click so the active DB is not lost after server restart
- testbed.py: return [] on 503 from /testbed/testsets instead of crashing when
  CORE DB is unavailable
- obaas.yaml + settings.py: fix YAML ParserError when sys_prompt contains double
  quotes or newlines by using yaml.dump(default_style='"') and removing redundant
  outer quotes from the template placeholder

Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
Previously generate_testset_endpoint ran the full expensive LLM/Giskard
PDF processing before calling _require_core_pool() inside _store_generated_testset,
wasting minutes of work before returning a 503.

Move the pool check to the top of the endpoint so it fails immediately.
Pass the resolved pool into _store_generated_testset to avoid a redundant
second lookup. Add test asserting _process_pdf_file is never called when
the pool is absent.

Signed-off-by: Vili Tajnic <vili.tajnic@oracle.com>
@gotsysdba gotsysdba self-assigned this Apr 14, 2026
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 14, 2026
@gotsysdba gotsysdba requested a review from ViliTajnic April 14, 2026 11:06
Copy link
Copy Markdown
Contributor

@ViliTajnic ViliTajnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked all bug fixes!

@ViliTajnic ViliTajnic merged commit ce34f68 into main Apr 14, 2026
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants