Code Monkey home page Code Monkey logo

Comments (5)

Catalin-Andronie avatar Catalin-Andronie commented on June 27, 2024

@BrianLParker What do you think about this proposal?

from restfulsense.

hassanhabib avatar hassanhabib commented on June 27, 2024

@Catalin-Andronie what are you going to serialize the response to other than what's already in place?

from restfulsense.

Catalin-Andronie avatar Catalin-Andronie commented on June 27, 2024

@Catalin-Andronie what are you going to serialize the response to other than what's already in place?

@hassanhabib For the OpenAI Audio endpoint, we can specify the response type (e.g: text, srt, vvt, json) in the request, which means the response cannot be serialized to JSON in all cases. Because of it, I propose two overloads:

  • ValueTask<TResponse> PostContentAsync<TResult>() - for serializing the response to JSON directly in the library
  • ValueTask<HttpResponseMessage> PostContentAsync() - allow the caller to serialize the response as needed for response types text, srt, vvt

@hassanhabib If you got other proposals I am open to not returning HttpResponseMessage directly, but it seems that currently, the library considers all responses as JSON.

from restfulsense.

hassanhabib avatar hassanhabib commented on June 27, 2024

@BrianLParker @cjdutoit thoughts?

from restfulsense.

Catalin-Andronie avatar Catalin-Andronie commented on June 27, 2024

Closing this, since now RESTFulSense has support to post a multipart-form.

from restfulsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.