@@ -31,10 +31,7 @@ If it were an `anthropic` model it would be an Anthropic key.
3131
3232 const client = new OpenAI ({
3333 apiKey: " BYTEZ_KEY" ,
34- baseURL: " https://api.bytez.com/models/v2/openai/v1" ,
35- defaultHeaders: {
36- Authorization: " BYTEZ_KEY"
37- }
34+ baseURL: " https://api.bytez.com/models/v2/openai/v1"
3835 });
3936
4037 const response = await client .completions .create ({
@@ -51,8 +48,7 @@ If it were an `anthropic` model it would be an Anthropic key.
5148
5249 client = OpenAI(
5350 api_key = " BYTEZ_KEY" ,
54- base_url = " https://api.bytez.com/models/v2/openai/v1" ,
55- default_headers = {" Authorization" : " BYTEZ_KEY" },
51+ base_url = " https://api.bytez.com/models/v2/openai/v1"
5652 )
5753
5854 response = client.completions.create(
@@ -86,10 +82,7 @@ If it were an `anthropic` model it would be an Anthropic key.
8682
8783 const client = new OpenAI ({
8884 apiKey: " BYTEZ_KEY" ,
89- baseURL: " https://api.bytez.com/models/v2/openai/v1" ,
90- defaultHeaders: {
91- Authorization: " BYTEZ_KEY"
92- }
85+ baseURL: " https://api.bytez.com/models/v2/openai/v1"
9386 });
9487
9588 const stream = await client .completions .create ({
@@ -118,8 +111,7 @@ If it were an `anthropic` model it would be an Anthropic key.
118111
119112 client = OpenAI(
120113 api_key = " BYTEZ_KEY" ,
121- base_url = " https://api.bytez.com/models/v2/openai/v1" ,
122- default_headers = {" Authorization" : " BYTEZ_KEY" },
114+ base_url = " https://api.bytez.com/models/v2/openai/v1"
123115 )
124116
125117 stream = client.completions.create(
@@ -166,11 +158,7 @@ If it were an `anthropic` model it would be an Anthropic key.
166158
167159 const client = new OpenAI ({
168160 apiKey: " BYTEZ_KEY" ,
169- baseURL: " https://api.bytez.com/models/v2/openai/v1" ,
170- defaultHeaders: {
171- Authorization: " BYTEZ_KEY" ,
172- " provider-key" : " PROVIDER_KEY"
173- }
161+ baseURL: " https://api.bytez.com/models/v2/openai/v1"
174162 });
175163
176164 const response = await client .completions .create ({
@@ -187,8 +175,7 @@ If it were an `anthropic` model it would be an Anthropic key.
187175
188176 client = OpenAI(
189177 api_key = " BYTEZ_KEY" ,
190- base_url = " https://api.bytez.com/models/v2/openai/v1" ,
191- default_headers = {" Authorization" : " BYTEZ_KEY" , " provider-key" : " PROVIDER_KEY" },
178+ base_url = " https://api.bytez.com/models/v2/openai/v1"
192179 )
193180
194181 response = client.completions.create(
@@ -223,11 +210,7 @@ If it were an `anthropic` model it would be an Anthropic key.
223210
224211 const client = new OpenAI ({
225212 apiKey: " BYTEZ_KEY" ,
226- baseURL: " https://api.bytez.com/models/v2/openai/v1" ,
227- defaultHeaders: {
228- Authorization: " BYTEZ_KEY" ,
229- " provider-key" : " PROVIDER_KEY"
230- }
213+ baseURL: " https://api.bytez.com/models/v2/openai/v1"
231214 });
232215
233216 const stream = await client .completions .create ({
@@ -256,8 +239,7 @@ If it were an `anthropic` model it would be an Anthropic key.
256239
257240 client = OpenAI(
258241 api_key = " BYTEZ_KEY" ,
259- base_url = " https://api.bytez.com/models/v2/openai/v1" ,
260- default_headers = {" Authorization" : " BYTEZ_KEY" , " provider-key" : " PROVIDER_KEY" },
242+ base_url = " https://api.bytez.com/models/v2/openai/v1"
261243 )
262244
263245 stream = client.completions.create(
0 commit comments