Skip to content

Commit

Permalink
feat(specs): add transformation copilot to ingestion (#3479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 authored Aug 6, 2024
1 parent 1034d8e commit ac0cadb
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cts/runCts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function runCtsOne(language: Language, suites: Record<CTSType, boolean>):
break;
case 'swift':
await run(
`swift test -Xswiftc -suppress-warnings --parallel ${filter((f) => `--filter ${f}.*`)}`,
`swift test -Xswiftc -suppress-warnings --parallel ${filter((f) => `--filter "${f}.*"`)}`,
{
cwd,
language,
Expand Down
21 changes: 21 additions & 0 deletions specs/ingestion/common/schemas/transformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,24 @@ TransformationTryResponse:
type: string
required:
- payloads

Model:
type: object
additionalProperties: false
properties:
fullname:
type: string
modelName:
type: string
systemPrompt:
type: string
id:
type: string
provider:
type: string
required:
- fullname
- modelName
- systemPrompt
- id
- provider
29 changes: 29 additions & 0 deletions specs/ingestion/paths/transformations/transformationsModels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
get:
tags:
- transformations
summary: Retrieve existing LLM transformation helpers
description: Retrieves a list of existing LLM transformation helpers.
operationId: listTransformationModels
x-acl:
- addObject
- deleteIndex
- editSettings
responses:
'200':
description: OK
content:
application/json:
schema:
title: transformationModels
type: object
description: List of available AI models for transformation purposes.
additionalProperties: false
properties:
llms:
type: array
items:
$ref: '../../common/schemas/transformation.yml#/Model'
required:
- llms
'400':
$ref: '../../../common/responses/BadRequest.yml'
2 changes: 2 additions & 0 deletions specs/ingestion/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ paths:
$ref: 'paths/transformations/transformationsTry.yml'
/1/transformations/search:
$ref: 'paths/transformations/transformationsSearch.yml'
/1/transformations/copilot:
$ref: 'paths/transformations/transformationsModels.yml'
/1/transformations/{transformationID}:
$ref: 'paths/transformations/transformationID.yml'

Expand Down
9 changes: 9 additions & 0 deletions tests/CTS/requests/ingestion/listTransformationModels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"parameters": {},
"request": {
"path": "/1/transformations/copilot",
"method": "GET"
}
}
]

0 comments on commit ac0cadb

Please sign in to comment.