transcribe: bill to org
Browse files
src/lib/components/chat/ToolUpdate.svelte
CHANGED
|
@@ -163,7 +163,7 @@
|
|
| 163 |
Input
|
| 164 |
</div>
|
| 165 |
<div
|
| 166 |
-
class="rounded-md border border-gray-100 bg-
|
| 167 |
>
|
| 168 |
<pre class="whitespace-pre-wrap break-all font-mono text-xs">{formatValue(
|
| 169 |
update.call.parameters
|
|
|
|
| 163 |
Input
|
| 164 |
</div>
|
| 165 |
<div
|
| 166 |
+
class="rounded-md border border-gray-100 bg-white p-2 text-gray-500 dark:border-gray-700 dark:bg-gray-800/50 dark:text-gray-400"
|
| 167 |
>
|
| 168 |
<pre class="whitespace-pre-wrap break-all font-mono text-xs">{formatValue(
|
| 169 |
update.call.parameters
|
src/routes/api/transcribe/+server.ts
CHANGED
|
@@ -64,6 +64,10 @@ export async function POST({ request, locals }) {
|
|
| 64 |
headers: {
|
| 65 |
Authorization: `Bearer ${token}`,
|
| 66 |
"Content-Type": contentType,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
},
|
| 68 |
body: audioBuffer,
|
| 69 |
signal: controller.signal,
|
|
|
|
| 64 |
headers: {
|
| 65 |
Authorization: `Bearer ${token}`,
|
| 66 |
"Content-Type": contentType,
|
| 67 |
+
// Bill to organization if configured (HuggingChat only)
|
| 68 |
+
...(config.isHuggingChat && locals?.billingOrganization
|
| 69 |
+
? { "X-HF-Bill-To": locals.billingOrganization }
|
| 70 |
+
: {}),
|
| 71 |
},
|
| 72 |
body: audioBuffer,
|
| 73 |
signal: controller.signal,
|