LibreChat/packages/data-provider/src
Danny Avila e73608ba46
🪶 feat: Add Support for Azure OpenAI Base URL (#1596)
* refactor(extractBaseURL): add handling for all possible Cloudflare AI Gateway endpoints

* chore: added endpointoption todo for updating type and optimizing handling app-wide

* feat(azureUtils):
- `genAzureChatCompletion`: allow optional client pass to update azure property
- `constructAzureURL`: optionally replace placeholders for instance and deployment names of an azure baseURL
- add tests for module

* refactor(extractBaseURL): return entire input when cloudflare `azure-openai` suffix detected
- also add more tests for both construct and extract URL

* refactor(genAzureChatCompletion): only allow omitting instance name if baseURL is not set

* refactor(initializeClient): determine `reverseProxyUrl` based on endpoint (azure or openai)

* refactor: utitlize `constructAzureURL` when `AZURE_OPENAI_BASEURL` is set

* docs: update docs on `AZURE_OPENAI_BASEURL`

* fix(ci): update expected error message for `azureUtils` tests
2024-01-19 14:57:03 -05:00
..
react-query fix: Enhance Test Coverage and Fix Compatibility Issues 👷‍♂️ (#1363) 2023-12-15 13:27:13 -05:00
types 🚀 Feat: Streamline File Strategies & GPT-4-Vision Settings (#1535) 2024-01-11 11:37:54 -05:00
api-endpoints.ts 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
config.ts 🎯 feat(config): Custom Endpoint Request Headers (#1588) 2024-01-18 20:11:42 -05:00
createPayload.ts 💫 feat: Config File & Custom Endpoints (#1474) 2024-01-03 09:22:48 -05:00
data-service.ts 🚀 Feat: Streamline File Strategies & GPT-4-Vision Settings (#1535) 2024-01-11 11:37:54 -05:00
headers-helpers.ts chore: add back data-provider 2023-07-30 11:50:24 -04:00
index.ts 💫 feat: Config File & Custom Endpoints (#1474) 2024-01-03 09:22:48 -05:00
keys.ts 🚀 Feat: Streamline File Strategies & GPT-4-Vision Settings (#1535) 2024-01-11 11:37:54 -05:00
parsers.ts 💫 feat: Config File & Custom Endpoints (#1474) 2024-01-03 09:22:48 -05:00
request.ts feat: Vision Support + New UI (#1203) 2023-11-21 20:12:48 -05:00
schemas.ts 🚀 Feat: Streamline File Strategies & GPT-4-Vision Settings (#1535) 2024-01-11 11:37:54 -05:00
sse.js feat: Vision Support + New UI (#1203) 2023-11-21 20:12:48 -05:00
types.ts 🪶 feat: Add Support for Azure OpenAI Base URL (#1596) 2024-01-19 14:57:03 -05:00