mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-19 03:10:03 +00:00
run openapi generator
This commit is contained in:
parent
4aa1bf6a60
commit
3b1917d5ea
2 changed files with 88 additions and 168 deletions
|
@ -360,7 +360,7 @@ components:
|
|||
oneOf:
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
schema:
|
||||
json_schema:
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
|
@ -376,7 +376,7 @@ components:
|
|||
type: string
|
||||
required:
|
||||
- type
|
||||
- schema
|
||||
- json_schema
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
|
@ -541,7 +541,7 @@ components:
|
|||
oneOf:
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
schema:
|
||||
json_schema:
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
|
@ -557,7 +557,7 @@ components:
|
|||
type: string
|
||||
required:
|
||||
- type
|
||||
- schema
|
||||
- json_schema
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
|
@ -747,18 +747,6 @@ components:
|
|||
required:
|
||||
- type
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
const: custom
|
||||
default: custom
|
||||
type: string
|
||||
validator_class:
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- validator_class
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
|
@ -1575,18 +1563,6 @@ components:
|
|||
required:
|
||||
- type
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
const: custom
|
||||
default: custom
|
||||
type: string
|
||||
validator_class:
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- validator_class
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
|
@ -1724,7 +1700,7 @@ components:
|
|||
$ref: '#/components/schemas/RLHFAlgorithm'
|
||||
algorithm_config:
|
||||
$ref: '#/components/schemas/DPOAlignmentConfig'
|
||||
dataset:
|
||||
dataset_id:
|
||||
type: string
|
||||
finetuned_model:
|
||||
$ref: '#/components/schemas/URL'
|
||||
|
@ -1754,13 +1730,13 @@ components:
|
|||
$ref: '#/components/schemas/OptimizerConfig'
|
||||
training_config:
|
||||
$ref: '#/components/schemas/TrainingConfig'
|
||||
validation_dataset:
|
||||
validation_dataset_id:
|
||||
type: string
|
||||
required:
|
||||
- job_uuid
|
||||
- finetuned_model
|
||||
- dataset
|
||||
- validation_dataset
|
||||
- dataset_id
|
||||
- validation_dataset_id
|
||||
- algorithm
|
||||
- algorithm_config
|
||||
- optimizer_config
|
||||
|
@ -1899,7 +1875,7 @@ components:
|
|||
additionalProperties: false
|
||||
properties:
|
||||
function_def:
|
||||
$ref: '#/components/schemas/ScoringFunctionDefWithProvider'
|
||||
$ref: '#/components/schemas/ScoringFnDefWithProvider'
|
||||
required:
|
||||
- function_def
|
||||
type: object
|
||||
|
@ -2121,7 +2097,7 @@ components:
|
|||
required:
|
||||
- results
|
||||
type: object
|
||||
ScoringFunctionDefWithProvider:
|
||||
ScoringFnDefWithProvider:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
context:
|
||||
|
@ -2129,6 +2105,10 @@ components:
|
|||
properties:
|
||||
judge_model:
|
||||
type: string
|
||||
judge_score_regex:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
prompt_template:
|
||||
type: string
|
||||
required:
|
||||
|
@ -2219,18 +2199,6 @@ components:
|
|||
required:
|
||||
- type
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
const: custom
|
||||
default: custom
|
||||
type: string
|
||||
validator_class:
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- validator_class
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
|
@ -2484,7 +2452,7 @@ components:
|
|||
- $ref: '#/components/schemas/LoraFinetuningConfig'
|
||||
- $ref: '#/components/schemas/QLoraFinetuningConfig'
|
||||
- $ref: '#/components/schemas/DoraFinetuningConfig'
|
||||
dataset:
|
||||
dataset_id:
|
||||
type: string
|
||||
hyperparam_search_config:
|
||||
additionalProperties:
|
||||
|
@ -2514,13 +2482,13 @@ components:
|
|||
$ref: '#/components/schemas/OptimizerConfig'
|
||||
training_config:
|
||||
$ref: '#/components/schemas/TrainingConfig'
|
||||
validation_dataset:
|
||||
validation_dataset_id:
|
||||
type: string
|
||||
required:
|
||||
- job_uuid
|
||||
- model
|
||||
- dataset
|
||||
- validation_dataset
|
||||
- dataset_id
|
||||
- validation_dataset_id
|
||||
- algorithm
|
||||
- algorithm_config
|
||||
- optimizer_config
|
||||
|
@ -3029,7 +2997,7 @@ info:
|
|||
description: "This is the specification of the llama stack that provides\n \
|
||||
\ a set of endpoints and their corresponding interfaces that are tailored\
|
||||
\ to\n best leverage Llama Models. The specification is still in\
|
||||
\ draft and subject to change.\n Generated at 2024-10-24 17:40:59.576117"
|
||||
\ draft and subject to change.\n Generated at 2024-10-30 16:17:03.919702"
|
||||
title: '[DRAFT] Llama Stack Specification'
|
||||
version: 0.0.1
|
||||
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
||||
|
@ -4122,7 +4090,7 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/ScoringFunctionDefWithProvider'
|
||||
- $ref: '#/components/schemas/ScoringFnDefWithProvider'
|
||||
- type: 'null'
|
||||
description: OK
|
||||
tags:
|
||||
|
@ -4142,7 +4110,7 @@ paths:
|
|||
content:
|
||||
application/jsonl:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ScoringFunctionDefWithProvider'
|
||||
$ref: '#/components/schemas/ScoringFnDefWithProvider'
|
||||
description: OK
|
||||
tags:
|
||||
- ScoringFunctions
|
||||
|
@ -4308,23 +4276,23 @@ security:
|
|||
servers:
|
||||
- url: http://any-hosted-llama-stack.com
|
||||
tags:
|
||||
- name: Eval
|
||||
- name: ScoringFunctions
|
||||
- name: SyntheticDataGeneration
|
||||
- name: Inference
|
||||
- name: Memory
|
||||
- name: Inspect
|
||||
- name: PostTraining
|
||||
- name: Models
|
||||
- name: Safety
|
||||
- name: MemoryBanks
|
||||
- name: DatasetIO
|
||||
- name: Memory
|
||||
- name: Scoring
|
||||
- name: Shields
|
||||
- name: Datasets
|
||||
- name: Inference
|
||||
- name: Telemetry
|
||||
- name: DatasetIO
|
||||
- name: BatchInference
|
||||
- name: Agents
|
||||
- name: Shields
|
||||
- name: MemoryBanks
|
||||
- name: Datasets
|
||||
- name: SyntheticDataGeneration
|
||||
- name: Eval
|
||||
- name: Telemetry
|
||||
- name: ScoringFunctions
|
||||
- name: Safety
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
|
||||
name: BuiltinTool
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"
|
||||
|
@ -4577,9 +4545,9 @@ tags:
|
|||
name: PaginatedRowsResult
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/Parameter" />
|
||||
name: Parameter
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ScoringFunctionDefWithProvider"
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ScoringFnDefWithProvider"
|
||||
/>
|
||||
name: ScoringFunctionDefWithProvider
|
||||
name: ScoringFnDefWithProvider
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldDefWithProvider"
|
||||
/>
|
||||
name: ShieldDefWithProvider
|
||||
|
@ -4844,7 +4812,7 @@ x-tagGroups:
|
|||
- ScoreBatchResponse
|
||||
- ScoreRequest
|
||||
- ScoreResponse
|
||||
- ScoringFunctionDefWithProvider
|
||||
- ScoringFnDefWithProvider
|
||||
- ScoringResult
|
||||
- SearchToolDefinition
|
||||
- Session
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue