Skip to content

Commit

Permalink
run openapi generator
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Oct 30, 2024
1 parent 4aa1bf6 commit 3b1917d
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 154 deletions.
128 changes: 40 additions & 88 deletions docs/resources/llama-stack-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"info": {
"title": "[DRAFT] Llama Stack Specification",
"version": "0.0.1",
"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"
"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-30 16:17:03.919702"
},
"servers": [
{
Expand Down Expand Up @@ -934,7 +934,7 @@
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ScoringFunctionDefWithProvider"
"$ref": "#/components/schemas/ScoringFnDefWithProvider"
},
{
"type": "null"
Expand Down Expand Up @@ -1555,7 +1555,7 @@
"content": {
"application/jsonl": {
"schema": {
"$ref": "#/components/schemas/ScoringFunctionDefWithProvider"
"$ref": "#/components/schemas/ScoringFnDefWithProvider"
}
}
}
Expand Down Expand Up @@ -2762,7 +2762,7 @@
"const": "json_schema",
"default": "json_schema"
},
"schema": {
"json_schema": {
"type": "object",
"additionalProperties": {
"oneOf": [
Expand Down Expand Up @@ -2791,7 +2791,7 @@
"additionalProperties": false,
"required": [
"type",
"schema"
"json_schema"
]
},
{
Expand Down Expand Up @@ -3018,7 +3018,7 @@
"const": "json_schema",
"default": "json_schema"
},
"schema": {
"json_schema": {
"type": "object",
"additionalProperties": {
"oneOf": [
Expand Down Expand Up @@ -3047,7 +3047,7 @@
"additionalProperties": false,
"required": [
"type",
"schema"
"json_schema"
]
},
{
Expand Down Expand Up @@ -5004,24 +5004,6 @@
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "custom",
"default": "custom"
},
"validator_class": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"validator_class"
]
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -5304,24 +5286,6 @@
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "custom",
"default": "custom"
},
"validator_class": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"validator_class"
]
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -5376,7 +5340,7 @@
"type"
]
},
"ScoringFunctionDefWithProvider": {
"ScoringFnDefWithProvider": {
"type": "object",
"properties": {
"identifier": {
Expand Down Expand Up @@ -5516,24 +5480,6 @@
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "custom",
"default": "custom"
},
"validator_class": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"validator_class"
]
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -5586,6 +5532,12 @@
},
"prompt_template": {
"type": "string"
},
"judge_score_regex": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -6339,10 +6291,10 @@
"finetuned_model": {
"$ref": "#/components/schemas/URL"
},
"dataset": {
"dataset_id": {
"type": "string"
},
"validation_dataset": {
"validation_dataset_id": {
"type": "string"
},
"algorithm": {
Expand Down Expand Up @@ -6412,8 +6364,8 @@
"required": [
"job_uuid",
"finetuned_model",
"dataset",
"validation_dataset",
"dataset_id",
"validation_dataset_id",
"algorithm",
"algorithm_config",
"optimizer_config",
Expand Down Expand Up @@ -6595,7 +6547,7 @@
"type": "object",
"properties": {
"function_def": {
"$ref": "#/components/schemas/ScoringFunctionDefWithProvider"
"$ref": "#/components/schemas/ScoringFnDefWithProvider"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -6893,10 +6845,10 @@
"model": {
"type": "string"
},
"dataset": {
"dataset_id": {
"type": "string"
},
"validation_dataset": {
"validation_dataset_id": {
"type": "string"
},
"algorithm": {
Expand Down Expand Up @@ -6976,8 +6928,8 @@
"required": [
"job_uuid",
"model",
"dataset",
"validation_dataset",
"dataset_id",
"validation_dataset_id",
"algorithm",
"algorithm_config",
"optimizer_config",
Expand Down Expand Up @@ -7103,13 +7055,10 @@
],
"tags": [
{
"name": "Eval"
},
{
"name": "ScoringFunctions"
"name": "Inference"
},
{
"name": "SyntheticDataGeneration"
"name": "Memory"
},
{
"name": "Inspect"
Expand All @@ -7121,37 +7070,40 @@
"name": "Models"
},
{
"name": "Safety"
},
{
"name": "MemoryBanks"
"name": "Scoring"
},
{
"name": "DatasetIO"
},
{
"name": "Memory"
"name": "BatchInference"
},
{
"name": "Scoring"
"name": "Agents"
},
{
"name": "Shields"
},
{
"name": "MemoryBanks"
},
{
"name": "Datasets"
},
{
"name": "Inference"
"name": "SyntheticDataGeneration"
},
{
"name": "Eval"
},
{
"name": "Telemetry"
},
{
"name": "BatchInference"
"name": "ScoringFunctions"
},
{
"name": "Agents"
"name": "Safety"
},
{
"name": "BuiltinTool",
Expand Down Expand Up @@ -7486,8 +7438,8 @@
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Parameter\" />"
},
{
"name": "ScoringFunctionDefWithProvider",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoringFunctionDefWithProvider\" />"
"name": "ScoringFnDefWithProvider",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoringFnDefWithProvider\" />"
},
{
"name": "ShieldDefWithProvider",
Expand Down Expand Up @@ -7805,7 +7757,7 @@
"ScoreBatchResponse",
"ScoreRequest",
"ScoreResponse",
"ScoringFunctionDefWithProvider",
"ScoringFnDefWithProvider",
"ScoringResult",
"SearchToolDefinition",
"Session",
Expand Down
Loading

0 comments on commit 3b1917d

Please sign in to comment.