From 3b81dc7ac344127952c3b5fca6ef3a78332d1b7c Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Fri, 19 Apr 2024 12:06:17 -0400 Subject: [PATCH 1/2] (feat): configure sse --- fern/apis/api/generators.yml | 5 +---- fern/apis/text-gen/openapi/openapi-overrides.yml | 2 ++ fern/fern.config.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index 29aaead..e95b30c 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -2,16 +2,13 @@ groups: python-sdk-local: generators: - name: fernapi/fern-python-sdk - version: 0.13.2 + version: 1.2.0-rc0 config: client: class_name: BaseOctoAI filename: base_client.py exported_class_name: OctoAI exported_filename: client.py - improved_imports: true - pydantic_config: - use_str_enums: true extra_dependencies: boto3: "^1.34.75" types-boto3: "^1.0" diff --git a/fern/apis/text-gen/openapi/openapi-overrides.yml b/fern/apis/text-gen/openapi/openapi-overrides.yml index 9471382..2448fc6 100644 --- a/fern/apis/text-gen/openapi/openapi-overrides.yml +++ b/fern/apis/text-gen/openapi/openapi-overrides.yml @@ -4,6 +4,7 @@ paths: x-fern-sdk-method-name: createChatCompletion x-fern-streaming: stream-condition: $request.stream + format: sse response: $ref: "#/components/schemas/ChatCompletionResponse" response-stream: @@ -16,6 +17,7 @@ paths: x-fern-sdk-method-name: createCompletion x-fern-streaming: stream-condition: $request.stream + format: sse response: $ref: "#/components/schemas/CompletionResponse" response-stream: diff --git a/fern/fern.config.json b/fern/fern.config.json index ca20549..6af99a9 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "octoai", - "version": "0.19.21" + "version": "0.23.0-rc0" } \ No newline at end of file From a0feaf2f640c684c16146d23f89d8c8116e598db Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Fri, 19 Apr 2024 13:10:11 -0400 Subject: [PATCH 2/2] upgrade generator again --- fern/apis/api/generators.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index e95b30c..ecc3a49 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -2,7 +2,7 @@ groups: python-sdk-local: generators: - name: fernapi/fern-python-sdk - version: 1.2.0-rc0 + version: 1.2.0-rc2 config: client: class_name: BaseOctoAI @@ -19,7 +19,7 @@ groups: python-sdk: generators: - name: fernapi/fern-python-sdk - version: 1.0.0a1 + version: 1.2.0-rc2 output: location: pypi package-name: "octoai" @@ -33,9 +33,6 @@ groups: filename: base_client.py exported_class_name: OctoAI exported_filename: client.py - improved_imports: true - pydantic_config: - use_str_enums: true extra_dependencies: boto3: "^1.34.75" types-boto3: "^1.0"