Skip to content

Conversation

@jpalvarezl
Copy link
Member

@jpalvarezl jpalvarezl commented Sep 1, 2023

Trying out how an implementation of multipart support could look like in the interim. Getting this error:

"error": {
          "message": "400: There was an error parsing the body",
          "type": "server_error",
          "param": null,
          "code": null
        }

@github-actions github-actions bot added the OpenAI label Sep 1, 2023
@jpalvarezl jpalvarezl changed the title Still error, but almost hack for multipart data request [OpenAI] BYO Multipart form request support Sep 1, 2023
@jpalvarezl jpalvarezl marked this pull request as ready for review September 7, 2023 10:07
@jpalvarezl jpalvarezl merged commit 8c0087e into jpalvarezl/whisper_support Sep 7, 2023
@jpalvarezl jpalvarezl deleted the jpalvarezl/multipart_data_hack branch September 7, 2023 10:07
jpalvarezl added a commit that referenced this pull request Sep 19, 2023
* Early code generation from topic branch for whisper

* Added simplest test

* Regened with correct paths

* Fixed name of method in the test

* Added test file for translations

* [OpenAI] BYO Multipart form request support (#36621)

* Still error, but almost hack for multipart data request

* Replaced whitespace with line breaks as necessary

* Somehow still failing. A bit out of ideas

* Changed the encoding to ASCII

* Using CRLF instead

* Test pass. Renamed variables to be more selfexplanatory

* Code regen and adjustments to new methods

* Using latest commit

* plain text works

* Code gen works

* Code regen with looser types, no hooks for content-type nor length

* Migrated multiform implementation over from the strongly typed branch

* Added headers

* Added classes

* reran code gen

* Compiles with modded tsp defintion, including content-type

* Corrected wrong value passed for content-length

* It works!

* Removed pattern instanceof for older compatibility version

* Refactored the MultipartHelper to be testable

* Added test definition for MultipartDataHelper class

* Added happy path test and model to the list to be serialized

* Added tests for the MultipartDataHelper class

* Refactored audio translation tests to use testRunners

* Added tests for miused formats

* Added more negative tests for wrong formats

* Renamed tests

* Finished Azure OAI sync test suite

* Added support for nonAzure translations

* Added Async translation methods

* Added tests and async functionality for translations

* Async translation tests for non-Azure

* Extracted audioTranscription assertion statements to method

* Added sync transcription functionality and AOAI tests

* Added license to source files

* Added todo markers where docs are missing

* Added async implementation and minimal testing for transcription

* Added tests for nonAzure OAI

* Code regen

* Corrected content type for bodyParam nonAzure

* Added remaing transcription tests for AOAI sync case

* Added tests for async AOAI

* Added transcription tests for nonAzure OAI sync API

* Added tests for nonAzure OAI async API

* Commited whisper session-record changes

* Inlined methods

* Added documentation to sync/async client for translation and transcription methods

* Added documentation to multipart helper classes

* Replaced start imports with single class imports

* Simplified tests and added logger to async client

* Added missing asset

* Added recordings for nonAzure tests

* Style checks

* Style check

* Style check

* Style check done

* Changelog update and static bug analysis issues addressed

* Last 2 replacement of monoError

* [OpenAI] Added sample and updated READMEs (#36806)

* suppression spotbugs for allowing external mutation on the bytep[ (#36826)

* fixed unknown cspell error, 'mpga'

* fixed sample broken links

* regenerated, no changes but only indents alignment

* Hardcoded boundary value for multipart requests

* Updated test records for nonAzure

* Most test passing with latest service version

* Rolled back test records for regressed tests

* Removed unused import

---------

Co-authored-by: Shawn Fang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants