mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 02:32:40 +00:00
structured output for /completion API ollama
This commit is contained in:
parent
3a9468ce9b
commit
1787008251
3 changed files with 2 additions and 2 deletions
|
@ -172,6 +172,7 @@ class OllamaInferenceAdapter(Inference, ModelsProtocolPrivate):
|
|||
model=model.provider_resource_id,
|
||||
content=content,
|
||||
sampling_params=sampling_params,
|
||||
response_format=response_format,
|
||||
stream=stream,
|
||||
logprobs=logprobs,
|
||||
)
|
||||
|
|
|
@ -208,7 +208,6 @@ class TestInference:
|
|||
assert not chunk.logprobs, "Logprobs should be empty"
|
||||
|
||||
@pytest.mark.asyncio(loop_scope="session")
|
||||
@pytest.mark.skip("This test is not quite robust")
|
||||
async def test_completion_structured_output(self, inference_model, inference_stack):
|
||||
inference_impl, _ = inference_stack
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import pytest
|
|||
from pydantic import BaseModel
|
||||
|
||||
PROVIDER_TOOL_PROMPT_FORMAT = {
|
||||
"remote::ollama": "python_list",
|
||||
"remote::ollama": "json",
|
||||
"remote::together": "json",
|
||||
"remote::fireworks": "json",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue