Files
oak-gpui/crates
Marshall Bowers cf5f4dddf5 Authorize access to language model providers based on country (#15859)
This PR updates the LLM service to authorize access to language model
providers based on the requester's country.

We detect the country using Cloudflare's
[`CF-IPCountry`](https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-ipcountry)
header.

The country code is then checked against the list of supported countries
for the given LLM provider. Countries that are not supported will
receive an `HTTP 451: Unavailable For Legal Reasons` response.

Release Notes:

- N/A
2024-08-06 11:49:04 -04:00
..
2024-05-29 18:06:45 -07:00
2024-07-23 15:01:05 -07:00
2024-07-26 16:42:21 -07:00
2024-07-23 15:01:05 -07:00
2024-04-30 23:31:59 -06:00
2024-07-23 15:01:05 -07:00
2024-03-11 10:45:57 +01:00
2024-07-15 17:04:15 -06:00
2024-07-25 09:00:53 -06:00
2024-08-05 13:48:15 -07:00
2024-06-21 16:32:32 -07:00
2024-07-26 03:31:41 -04:00
2024-04-15 14:21:52 +02:00
2024-07-29 09:22:25 -06:00