@@ -26,7 +26,7 @@ const response = await fetch('/api/channel/?p=1&page_size=20&id_sort=false&tag_m
2626 headers: {
2727 'Content-Type': 'application/json',
2828 'Authorization': 'Bearer your_admin_token',
29- 'New-Api-User': 'Bearer your_user_id'
29+ 'New-Api-User': 'your_user_id'
3030 }
3131});
3232const data = await response.json();
@@ -97,7 +97,7 @@ const response = await fetch('/api/channel/search?keyword=openai&group=default&m
9797 headers: {
9898 'Content-Type': 'application/json',
9999 'Authorization': 'Bearer your_admin_token',
100- 'New-Api-User': 'Bearer your_user_id'
100+ 'New-Api-User': 'your_user_id'
101101 }
102102});
103103const data = await response.json();
@@ -158,7 +158,7 @@ const response = await fetch('/api/channel/models', {
158158 headers: {
159159 'Content-Type': 'application/json',
160160 'Authorization': 'Bearer your_admin_token',
161- 'New-Api-User': 'Bearer your_user_id'
161+ 'New-Api-User': 'your_user_id'
162162 }
163163});
164164const data = await response.json();
@@ -219,7 +219,7 @@ const response = await fetch('/api/channel/models_enabled', {
219219 headers: {
220220 'Content-Type': 'application/json',
221221 'Authorization': 'Bearer your_admin_token',
222- 'New-Api-User': 'Bearer your_user_id'
222+ 'New-Api-User': 'your_user_id'
223223 }
224224});
225225const data = await response.json();
@@ -268,7 +268,7 @@ const response = await fetch('/api/channel/123', {
268268 headers: {
269269 'Content-Type': 'application/json',
270270 'Authorization': 'Bearer your_admin_token',
271- 'New-Api-User': 'Bearer your_user_id'
271+ 'New-Api-User': 'your_user_id'
272272 }
273273});
274274const data = await response.json();
@@ -329,7 +329,7 @@ const response = await fetch('/api/channel/test?model=gpt-3.5-turbo', {
329329 headers: {
330330 'Content-Type': 'application/json',
331331 'Authorization': 'Bearer your_admin_token',
332- 'New-Api-User': 'Bearer your_user_id'
332+ 'New-Api-User': 'your_user_id'
333333 }
334334});
335335const data = await response.json();
@@ -398,7 +398,7 @@ const response = await fetch('/api/channel/test/123?model=gpt-4', {
398398 headers: {
399399 'Content-Type': 'application/json',
400400 'Authorization': 'Bearer your_admin_token',
401- 'New-Api-User': 'Bearer your_user_id'
401+ 'New-Api-User': 'your_user_id'
402402 }
403403});
404404const data = await response.json();
@@ -446,7 +446,7 @@ const response = await fetch('/api/channel/update_balance', {
446446 headers: {
447447 'Content-Type': 'application/json',
448448 'Authorization': 'Bearer your_admin_token',
449- 'New-Api-User': 'Bearer your_user_id'
449+ 'New-Api-User': 'your_user_id'
450450 }
451451});
452452const data = await response.json();
@@ -490,7 +490,7 @@ const response = await fetch('/api/channel/update_balance/123', {
490490 headers: {
491491 'Content-Type': 'application/json',
492492 'Authorization': 'Bearer your_admin_token',
493- 'New-Api-User': 'Bearer your_user_id'
493+ 'New-Api-User': 'your_user_id'
494494 }
495495});
496496const data = await response.json();
@@ -536,7 +536,7 @@ const response = await fetch('/api/channel/', {
536536 headers: {
537537 'Content-Type': 'application/json',
538538 'Authorization': 'Bearer your_admin_token',
539- 'New-Api-User': 'Bearer your_user_id'
539+ 'New-Api-User': 'your_user_id'
540540 },
541541 body: JSON.stringify({
542542 mode: "single",
@@ -604,7 +604,7 @@ const response = await fetch('/api/channel/', {
604604 headers: {
605605 'Content-Type': 'application/json',
606606 'Authorization': 'Bearer your_admin_token',
607- 'New-Api-User': 'Bearer your_user_id'
607+ 'New-Api-User': 'your_user_id'
608608 },
609609 body: JSON.stringify({
610610 id: 123,
@@ -656,7 +656,7 @@ const response = await fetch('/api/channel/disabled', {
656656 headers: {
657657 'Content-Type': 'application/json',
658658 'Authorization': 'Bearer your_admin_token',
659- 'New-Api-User': 'Bearer your_user_id'
659+ 'New-Api-User': 'your_user_id'
660660 }
661661});
662662const data = await response.json();
@@ -702,7 +702,7 @@ const response = await fetch('/api/channel/tag/disabled', {
702702 headers: {
703703 'Content-Type': 'application/json',
704704 'Authorization': 'Bearer your_admin_token',
705- 'New-Api-User': 'Bearer your_user_id'
705+ 'New-Api-User': 'your_user_id'
706706 },
707707 body: JSON.stringify({
708708 tag: "test-tag"
@@ -749,7 +749,7 @@ const response = await fetch('/api/channel/tag/enabled', {
749749 headers: {
750750 'Content-Type': 'application/json',
751751 'Authorization': 'Bearer your_admin_token',
752- 'New-Api-User': 'Bearer your_user_id'
752+ 'New-Api-User': 'your_user_id'
753753 },
754754 body: JSON.stringify({
755755 tag: "production-tag"
@@ -796,7 +796,7 @@ const response = await fetch('/api/channel/tag', {
796796 headers: {
797797 'Content-Type': 'application/json',
798798 'Authorization': 'Bearer your_admin_token',
799- 'New-Api-User': 'Bearer your_user_id'
799+ 'New-Api-User': 'your_user_id'
800800 },
801801 body: JSON.stringify({
802802 tag: "old-tag",
@@ -854,7 +854,7 @@ const response = await fetch('/api/channel/123', {
854854 headers: {
855855 'Content-Type': 'application/json',
856856 'Authorization': 'Bearer your_admin_token',
857- 'New-Api-User': 'Bearer your_user_id'
857+ 'New-Api-User': 'your_user_id'
858858 }
859859});
860860const data = await response.json();
@@ -898,7 +898,7 @@ const response = await fetch('/api/channel/batch', {
898898 headers: {
899899 'Content-Type': 'application/json',
900900 'Authorization': 'Bearer your_admin_token',
901- 'New-Api-User': 'Bearer your_user_id'
901+ 'New-Api-User': 'your_user_id'
902902 },
903903 body: JSON.stringify({
904904 ids: [1, 2, 3, 4, 5]
@@ -947,7 +947,7 @@ const response = await fetch('/api/channel/fix', {
947947 headers: {
948948 'Content-Type': 'application/json',
949949 'Authorization': 'Bearer your_admin_token',
950- 'New-Api-User': 'Bearer your_user_id'
950+ 'New-Api-User': 'your_user_id'
951951 }
952952});
953953const data = await response.json();
@@ -997,7 +997,7 @@ const response = await fetch('/api/channel/fetch_models/123', {
997997 headers: {
998998 'Content-Type': 'application/json',
999999 'Authorization': 'Bearer your_admin_token',
1000- 'New-Api-User': 'Bearer your_user_id'
1000+ 'New-Api-User': 'your_user_id'
10011001 }
10021002});
10031003const data = await response.json();
@@ -1047,7 +1047,7 @@ const response = await fetch('/api/channel/fetch_models', {
10471047 headers: {
10481048 'Content-Type': 'application/json',
10491049 'Authorization': 'Bearer your_admin_token',
1050- 'New-Api-User': 'Bearer your_user_id'
1050+ 'New-Api-User': 'your_user_id'
10511051 },
10521052 body: JSON.stringify({
10531053 base_url: "https://api.openai.com",
@@ -1103,7 +1103,7 @@ const response = await fetch('/api/channel/batch/tag', {
11031103 headers: {
11041104 'Content-Type': 'application/json',
11051105 'Authorization': 'Bearer your_admin_token',
1106- 'New-Api-User': 'Bearer your_user_id'
1106+ 'New-Api-User': 'your_user_id'
11071107 },
11081108 body: JSON.stringify({
11091109 ids: [1, 2, 3],
@@ -1154,7 +1154,7 @@ const response = await fetch('/api/channel/tag/models?tag=production', {
11541154 headers: {
11551155 'Content-Type': 'application/json',
11561156 'Authorization': 'Bearer your_admin_token',
1157- 'New-Api-User': 'Bearer your_user_id'
1157+ 'New-Api-User': 'your_user_id'
11581158 }
11591159});
11601160const data = await response.json();
@@ -1200,7 +1200,7 @@ const response = await fetch('/api/channel/copy/123?suffix=_备份&reset_balance
12001200 headers: {
12011201 'Content-Type': 'application/json',
12021202 'Authorization': 'Bearer your_admin_token',
1203- 'New-Api-User': 'Bearer your_user_id'
1203+ 'New-Api-User': 'your_user_id'
12041204 }
12051205});
12061206const data = await response.json();
0 commit comments