mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #2 from jpdus/function_call
This commit is contained in:
@@ -58,14 +58,15 @@ def segment(data: str) -> MultiSearch:
|
||||
model="gpt-3.5-turbo-0613",
|
||||
temperature=0,
|
||||
functions=[MultiSearch.openai_schema],
|
||||
function_call={"name": MultiSearch.openai_schema['name']},
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You must use the tool given to response.",
|
||||
"content": "You are a helpful assistant.",
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": f"Consider the data below:\n{data} and segment it into multiple search queries. You must use `MultiStep` to do this.",
|
||||
"content": f"Consider the data below:\n{data} and segment it into multiple search queries",
|
||||
},
|
||||
],
|
||||
max_tokens=1000,
|
||||
|
||||
Reference in New Issue
Block a user