@@ -55,9 +55,11 @@ def create(
55
55
* ,
56
56
messages : Iterable [ChatCompletionMessageParam ],
57
57
model : str ,
58
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
58
59
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
59
60
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
60
61
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
62
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
61
63
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
62
64
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
63
65
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -94,9 +96,11 @@ def create(
94
96
* ,
95
97
messages : Iterable [ChatCompletionMessageParam ],
96
98
model : str ,
99
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
97
100
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
98
101
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
99
102
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
103
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
100
104
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
101
105
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
102
106
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -133,9 +137,11 @@ def create(
133
137
* ,
134
138
messages : Iterable [ChatCompletionMessageParam ],
135
139
model : str ,
140
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
136
141
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
137
142
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
138
143
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
144
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
139
145
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
140
146
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
141
147
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -181,9 +187,11 @@ def create(
181
187
"llama3-8b-8192" ,
182
188
],
183
189
],
190
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
184
191
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
185
192
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
186
193
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
194
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
187
195
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
188
196
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
189
197
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -221,6 +229,9 @@ def create(
221
229
model: ID of the model to use. For details on which models are compatible with the Chat
222
230
API, see available [models](https://console.groq.com/docs/models)
223
231
232
+ exclude_domains: A list of domains to exclude from the search results when the model uses a web
233
+ search tool.
234
+
224
235
frequency_penalty: Number between -2.0 and 2.0. Positive values penalize new tokens based on their
225
236
existing frequency in the text so far, decreasing the model's likelihood to
226
237
repeat the same line verbatim.
@@ -240,6 +251,9 @@ def create(
240
251
241
252
A list of functions the model may generate JSON inputs for.
242
253
254
+ include_domains: A list of domains to include in the search results when the model uses a web
255
+ search tool.
256
+
243
257
logit_bias: This is not yet supported by any of our models. Modify the likelihood of
244
258
specified tokens appearing in the completion.
245
259
@@ -344,9 +358,11 @@ def create(
344
358
{
345
359
"messages" : messages ,
346
360
"model" : model ,
361
+ "exclude_domains" : exclude_domains ,
347
362
"frequency_penalty" : frequency_penalty ,
348
363
"function_call" : function_call ,
349
364
"functions" : functions ,
365
+ "include_domains" : include_domains ,
350
366
"logit_bias" : logit_bias ,
351
367
"logprobs" : logprobs ,
352
368
"max_completion_tokens" : max_completion_tokens ,
@@ -406,9 +422,11 @@ async def create(
406
422
* ,
407
423
messages : Iterable [ChatCompletionMessageParam ],
408
424
model : str ,
425
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
409
426
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
410
427
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
411
428
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
429
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
412
430
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
413
431
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
414
432
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -445,9 +463,11 @@ async def create(
445
463
* ,
446
464
messages : Iterable [ChatCompletionMessageParam ],
447
465
model : str ,
466
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
448
467
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
449
468
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
450
469
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
470
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
451
471
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
452
472
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
453
473
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -484,9 +504,11 @@ async def create(
484
504
* ,
485
505
messages : Iterable [ChatCompletionMessageParam ],
486
506
model : str ,
507
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
487
508
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
488
509
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
489
510
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
511
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
490
512
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
491
513
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
492
514
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -532,9 +554,11 @@ async def create(
532
554
"llama3-8b-8192" ,
533
555
],
534
556
],
557
+ exclude_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
535
558
frequency_penalty : Optional [float ] | NotGiven = NOT_GIVEN ,
536
559
function_call : Optional [completion_create_params .FunctionCall ] | NotGiven = NOT_GIVEN ,
537
560
functions : Optional [Iterable [completion_create_params .Function ]] | NotGiven = NOT_GIVEN ,
561
+ include_domains : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
538
562
logit_bias : Optional [Dict [str , int ]] | NotGiven = NOT_GIVEN ,
539
563
logprobs : Optional [bool ] | NotGiven = NOT_GIVEN ,
540
564
max_completion_tokens : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -572,6 +596,9 @@ async def create(
572
596
model: ID of the model to use. For details on which models are compatible with the Chat
573
597
API, see available [models](https://console.groq.com/docs/models)
574
598
599
+ exclude_domains: A list of domains to exclude from the search results when the model uses a web
600
+ search tool.
601
+
575
602
frequency_penalty: Number between -2.0 and 2.0. Positive values penalize new tokens based on their
576
603
existing frequency in the text so far, decreasing the model's likelihood to
577
604
repeat the same line verbatim.
@@ -591,6 +618,9 @@ async def create(
591
618
592
619
A list of functions the model may generate JSON inputs for.
593
620
621
+ include_domains: A list of domains to include in the search results when the model uses a web
622
+ search tool.
623
+
594
624
logit_bias: This is not yet supported by any of our models. Modify the likelihood of
595
625
specified tokens appearing in the completion.
596
626
@@ -695,9 +725,11 @@ async def create(
695
725
{
696
726
"messages" : messages ,
697
727
"model" : model ,
728
+ "exclude_domains" : exclude_domains ,
698
729
"frequency_penalty" : frequency_penalty ,
699
730
"function_call" : function_call ,
700
731
"functions" : functions ,
732
+ "include_domains" : include_domains ,
701
733
"logit_bias" : logit_bias ,
702
734
"logprobs" : logprobs ,
703
735
"max_completion_tokens" : max_completion_tokens ,
0 commit comments