Skip to content

feat: Support cert config openaicompatible models#121

Open
paul-cayet wants to merge 2 commits intomainfrom
support-cert-config-openaicompatible-models
Open

feat: Support cert config openaicompatible models#121
paul-cayet wants to merge 2 commits intomainfrom
support-cert-config-openaicompatible-models

Conversation

@paul-cayet
Copy link
Copy Markdown
Member

This PR adds support for SSL certificate configuration for OpenAI-compatible LLMs and embedding models.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 19, 2026
@paul-cayet paul-cayet changed the title Support cert config openaicompatible models feat: Support cert config openaicompatible models Mar 19, 2026
@dhilloulinoracle
Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #747

@paul-cayet paul-cayet force-pushed the support-cert-config-openaicompatible-models branch from 052e3ae to 243e714 Compare March 27, 2026 10:14
@dhilloulinoracle
Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #761

@paul-cayet paul-cayet marked this pull request as ready for review March 27, 2026 13:11
@paul-cayet paul-cayet requested a review from a team March 27, 2026 13:11


@pytest.mark.parametrize("llm_cls", [OpenAICompatibleModel, VllmModel, OllamaModel])
def test_llm_model_serde_preserves_tls_sensitive_fields(tls_material_factory, llm_cls) -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

preserves? It looks like the opposite to me, I would assume that without the components registry this test fails

deserialized_agent = cast(
Agent,
AgentSpecLoader().load_json(
AgentSpecExporter().to_json(agent),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would maybe add an intermediate check to ensure that the fields that should not be exported are not in the json

def log_message(self, format: str, *args: object) -> None:
return None

server = ThreadingHTTPServer(("127.0.0.1", 0), RequestHandler)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How is the port selected? I think we should rely on the common method to get a unique one

@@ -102,6 +111,9 @@ def __init__(
base_url=host_port,
proxy=proxy,
api_key=EMPTY_API_KEY,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

for Ollama model, now that you are using _warn_about_runtime_only_configuration, the non-empty EMPTY_API_KEY will make Ollama always log this misleading warning

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.

4 participants