mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
updated the additional params to pass any type of values
This commit is contained in:
parent
1d6ef73dd7
commit
03a25a7753
3 changed files with 28 additions and 3 deletions
21
docs/_static/llama-stack-spec.html
vendored
21
docs/_static/llama-stack-spec.html
vendored
|
@ -4195,7 +4195,26 @@
|
|||
"additional_params": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
8
docs/_static/llama-stack-spec.yaml
vendored
8
docs/_static/llama-stack-spec.yaml
vendored
|
@ -2910,7 +2910,13 @@ components:
|
|||
additional_params:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: string
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
- type: boolean
|
||||
- type: number
|
||||
- type: string
|
||||
- type: array
|
||||
- type: object
|
||||
additionalProperties: false
|
||||
required:
|
||||
- strategy
|
||||
|
|
|
@ -82,7 +82,7 @@ class SamplingParams(BaseModel):
|
|||
max_tokens: Optional[int] = 0
|
||||
repetition_penalty: Optional[float] = 1.0
|
||||
stop: Optional[List[str]] = None
|
||||
additional_params: Optional[Dict[str, str]] = {}
|
||||
additional_params: Optional[Dict[str, Any]] = {}
|
||||
|
||||
|
||||
class LogProbConfig(BaseModel):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue