force all openai search to search
This commit is contained in:
parent
333120fbb4
commit
8c78b564ae
|
|
@ -28,6 +28,7 @@ def get_stock_news_openai(query, start_date, end_date):
|
|||
"search_context_size": "low",
|
||||
}
|
||||
],
|
||||
tool_choice={"type": "web_search_preview"},
|
||||
temperature=1,
|
||||
max_output_tokens=4096,
|
||||
top_p=1,
|
||||
|
|
@ -62,6 +63,7 @@ def get_crypto_news_openai(query, start_date, end_date):
|
|||
"search_context_size": "low",
|
||||
}
|
||||
],
|
||||
tool_choice={"type": "web_search_preview"},
|
||||
temperature=1,
|
||||
max_output_tokens=4096,
|
||||
top_p=1,
|
||||
|
|
@ -96,6 +98,7 @@ def get_global_news_openai(curr_date, look_back_days=7, limit=5):
|
|||
"search_context_size": "low",
|
||||
}
|
||||
],
|
||||
tool_choice={"type": "web_search_preview"},
|
||||
temperature=1,
|
||||
max_output_tokens=4096,
|
||||
top_p=1,
|
||||
|
|
@ -132,6 +135,7 @@ def get_fundamentals_openai(ticker, curr_date):
|
|||
"search_context_size": "low",
|
||||
}
|
||||
],
|
||||
tool_choice={"type": "web_search_preview"},
|
||||
temperature=1,
|
||||
max_output_tokens=4096,
|
||||
top_p=1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue