Skip to content

Python: New Feature: OllamaChatPromptExecutionSettings does not support structured outputs #12355

@xyang2013

Description

@xyang2013

The following does not work:

settings = kernel.get_prompt_execution_settings_from_service_id(service_id)
settings.format = InputScore.model_json_schema()

Links:

https://learn.microsoft.com/en-us/python/api/semantic-kernel/semantic_kernel.connectors.ai.ollama.ollama_prompt_execution_settings.ollamachatpromptexecutionsettings?view=semantic-kernel-python

https://ollama.com/blog/structured-outputs

Metadata

Metadata

Assignees

Labels

ai connectorAnything related to AI connectorspythonPull requests for the Python Semantic Kernel

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions