chat-ui
321397f5 - Org billing (#1995)

Commit
195 days ago
Org billing (#1995) * Add billing organization selection Introduces support for selecting a billing organization for inference requests in HuggingChat. Adds a new billing section in application settings, updates user settings and API to store and validate the selected organization, and ensures requests are billed to the chosen organization by sending the X-HF-Bill-To header. Also updates environment and chart files to include the new OpenID scope required for billing. * Update +page.svelte * Remove billingOrganization from default settings * Fix user settings creation and update test for findUser The test for updateUser now passes a URL to findUser to match the updated function signature. Also, the updateUser function now inserts the full DEFAULT_SETTINGS object when creating default user settings, ensuring billingOrganization is included.
Author
Parents
Loading