Coder Social home page Coder Social logo

Comments (5)

64bit avatar 64bit commented on June 19, 2024 1

Nice project! Thank you for offering to test @Kakise!
I might attempt to implement support over weekend, and let you know when ready for testing.

Does it support all the same APIs as OpenAI? Are there any major difference you noticed other than the mechanics of API call?

from async-openai.

Kakise avatar Kakise commented on June 19, 2024 1

@64bit right now I only tested completions and embeddings but it does support all OpenAI APIs.

The main difference I noticed is how you call your model. For OpenAI it's passed in the body and for Azure it's passed in the url

from async-openai.

64bit avatar 64bit commented on June 19, 2024

It is GA https://azure.microsoft.com/en-us/blog/general-availability-of-azure-openai-service-expands-access-to-large-advanced-ai-models-with-added-enterprise-benefits/

However still limited access.

from async-openai.

Kakise avatar Kakise commented on June 19, 2024

I made something quick because I got access: https://github.com/Kakise/az-openai-rs you can check it out and I can test your changes if needed @64bit

from async-openai.

64bit avatar 64bit commented on June 19, 2024

Hi @Kakise , thank you for your response, I had opportunity to look into this today and I discovered that only embedding, completions, and chat completions APIs are currently supported in 2023-03-15-preview api version.

SO I have made the changes to support Azure in #67 , I have tested all the examples on OpenAI after this change.

For testing on Azure and make it as simple for you I have added a new example called examples/azure-openai-service with three API calls in it for embedding, completioins and chat completion. You will only need to change api_key, endpoint and deployment id.

Can you please run that example and post output? I can add output to examples/azure-openai-service/README.md

Hope all goes well, thank you for your help on this!

from async-openai.

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.