Skip to content

Commit 28bc15d

Browse files
authored
Merge pull request #161 from Fonzzy1/main
Add in optional web_search_options to be passed onto open_AI
2 parents f4352d8 + 99be3ad commit 28bc15d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/providers/openai.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def _make_openai_options(self, options):
114114
if options['temperature'] > -1:
115115
result['temperature'] = options['temperature']
116116

117+
if 'web_search_options' in options:
118+
result['web_search_options'] = options['web_search_options']
119+
117120
if max_tokens > 0:
118121
result['max_tokens'] = max_tokens
119122
if max_completion_tokens > 0:

0 commit comments

Comments
 (0)