Skip to content

Commit

Permalink
Merge pull request #5 from octoml/ac/some-fixes
Browse files Browse the repository at this point in the history
text: add streaming option
  • Loading branch information
adelbertc authored Mar 11, 2024
2 parents 660da25 + 9c3a63a commit efad065
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions fern/apis/text-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@ paths:
/v1/chat/completions:
post:
x-fern-sdk-method-name: createChatCompletion
x-fern-streaming:
stream-condition: $request.stream
response:
$ref: "#/components/schemas/ChatCompletionResponse"
response-stream:
$ref: "#/components/schemas/ChatCompletionChunk"
servers:
- url: https://text.octoai.cloud
- url: https://text.octoai.run
x-name: TextGen
/v1/completions:
post:
x-fern-sdk-method-name: createCompletion
x-fern-streaming:
stream-condition: $request.stream
response:
$ref: "#/components/schemas/CompletionResponse"
response-stream:
$ref: "#/components/schemas/CompletionResponse"
servers:
- url: https://text.octoai.cloud
- url: https://text.octoai.run
x-name: TextGen
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "octoai",
"version": "0.19.0-rc7"
"version": "0.19.4"
}

0 comments on commit efad065

Please sign in to comment.