Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lynnaloo/azure-openai-samples

JavaScript samples for Azure OpenAI
https://github.com/lynnaloo/azure-openai-samples

Last synced: about 1 month ago
JSON representation

JavaScript samples for Azure OpenAI

Awesome Lists containing this project

README

        

# JavaScript Azure OpenAi Samples

## Samples

* Azure Functions
* generateDescription - Generates basic descriptions for an image url.

Example HTTP call to Function:

```
curl -X POST \
-H "Content-Type: application/json" \
-d '{"imageUrl": "https://barnesfoundation.imgix.net/galleryImages/BF949.jpeg"}' \

```

Example `local.settings.json`

```
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
"AzureOpenAIKey": "",
"AzureOpenAIDeploymentName": "",
"AzureOpenAIEndpoint": ""
}
}
```