mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 01:03:59 +00:00
Revert model in ModelCandidate to type string
This commit is contained in:
parent
43993cc29c
commit
95619892ea
3 changed files with 3 additions and 42 deletions
31
docs/_static/llama-stack-spec.html
vendored
31
docs/_static/llama-stack-spec.html
vendored
|
@ -6466,36 +6466,7 @@
|
|||
"default": "model"
|
||||
},
|
||||
"model": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "string",
|
||||
"description": "The model ID to evaluate."
|
||||
},
|
||||
"sampling_params": {
|
||||
|
|
12
docs/_static/llama-stack-spec.yaml
vendored
12
docs/_static/llama-stack-spec.yaml
vendored
|
@ -4553,17 +4553,7 @@ components:
|
|||
const: model
|
||||
default: model
|
||||
model:
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: object
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
- type: boolean
|
||||
- type: number
|
||||
- type: string
|
||||
- type: array
|
||||
- type: object
|
||||
type: string
|
||||
description: The model ID to evaluate.
|
||||
sampling_params:
|
||||
$ref: '#/components/schemas/SamplingParams'
|
||||
|
|
|
@ -27,7 +27,7 @@ class ModelCandidate(BaseModel):
|
|||
"""
|
||||
|
||||
type: Literal["model"] = "model"
|
||||
model: Union[str, Dict[str, Any]]
|
||||
model: str
|
||||
sampling_params: Optional[SamplingParams] = Field(default_factory=SamplingParams)
|
||||
system_message: Optional[SystemMessage] = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue