Ability to make mock API calls to Azure OpenAI services?

Ian Arawjo 5 Reputation points
2023-07-03T21:10:05.0333333+00:00

Hi there, I am a developer of a tool to help people query LLMs. I'm trying to debug API calls to Azure OpenAI for our users, but it’s impossible to test and verify the code without actually being able to complete an API request. Is it possible to have a mock API call/request, or a mock endpoint? Or is there equivalent code that you could provide which simulates an Azure OpenAI API call?

I want to support Azure OpenAI services for our users, but it's hard to continue support if I can't test API calls to Azure as the developer. (And as an academic, I’m not enterprise, so according to the policy I can’t get access, even if I submit a request.)

Any help would be appreciated.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2023-07-03T21:17:54.3333333+00:00

    Hello @Ian Arawjo !

    I understand your issue to support your users

    I am not aware of mock endpoints however , but you can create a Free Azure Subscription to utilize as you wish

    Ths links prvide info

    https://learn.microsoft.com/en-us/azure/cognitive-services/openai/tutorials/embeddings?tabs=command-line

    https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.