Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lynnaloo/azure-openai-samples
- Owner: lynnaloo
- License: mit
- Created: 2024-05-28T00:13:15.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T00:39:00.000Z (6 months ago)
- Last Synced: 2024-05-28T10:08:31.184Z (6 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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": ""
}
}
```