Skip to content

Commit

Permalink
Fixing stream completion url and removing the old url and class
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Jan 16, 2025
1 parent 687063f commit 0442e31
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 113 deletions.
2 changes: 1 addition & 1 deletion specification/_json_spec/inference.stream_completion.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": {
"paths": [
{
"path": "/_inference/{task_type}/{inference_id}/_stream",
"path": "/_inference/completion/{inference_id}/_stream",
"methods": ["POST"],
"parts": {
"inference_id": {
Expand Down
12 changes: 0 additions & 12 deletions specification/inference/_types/Results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,6 @@ export class RerankedInferenceResult {
rerank: Array<RankedDocument>
}

/**
* InferenceResult is an aggregation of mutually exclusive variants
* @variants container
*/
export class InferenceResult {
text_embedding_bytes?: Array<TextEmbeddingByteResult>
text_embedding?: Array<TextEmbeddingResult>
sparse_embedding?: Array<SparseEmbeddingResult>
completion?: Array<CompletionResult>
rerank?: Array<RankedDocument>
}

/**
* Acknowledged response. For dry_run, contains the list of pipelines which reference the inference endpoint
*/
Expand Down
76 changes: 0 additions & 76 deletions specification/inference/inference/InferenceRequest.ts

This file was deleted.

24 changes: 0 additions & 24 deletions specification/inference/inference/InferenceResponse.ts

This file was deleted.

0 comments on commit 0442e31

Please sign in to comment.