File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 16
16
api_key = "token" ,
17
17
)
18
18
19
- def get_llm_reply (prompt ):
20
- completion = llm_client .chat .completions .create (
21
- model = LLM_MODEL_NAME ,
22
- messages = [
23
- {"role" : "user" , "content" : prompt }
24
- ]
25
- )
26
- return completion .choices [0 ].message .content
19
+ def get_llm_reply (prompt , temperature = 0 ):
20
+ completion = llm_client .chat .completions .create (
21
+ model = LLM_MODEL_NAME ,
22
+ messages = [
23
+ {"role" : "user" , "content" : prompt }
24
+ ],
25
+ temperature = temperature ,
26
+ )
27
+ return completion .choices [0 ].message .content
27
28
28
29
"""
29
30
Get list of statements from input.
30
31
"""
31
32
def get_statements (input ):
32
33
system_message = '''You are a helpful AI assistant.
33
34
Solve tasks using your fact extraction skills.
34
- Extract key facts from the given content.
35
- Provide a list of the facts in array format as response only.'''
35
+ Extract key statements from the given content.
36
+ Provide in array format as response only.'''
36
37
37
38
prompt = f'''{ system_message }
38
39
```
You can’t perform that action at this time.
0 commit comments