add interpreter to graph (#1347)

### What problem does this PR solve?

#918 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
KevinHuSh
2024-07-03 12:15:15 +08:00
committed by GitHub
parent f6159ee4d3
commit 7c9ea5cad9
9 changed files with 870 additions and 8 deletions

View File

@ -587,5 +587,6 @@ You're a question analyzer.
Answer format: (in language of user's question)
- keyword:
"""
kwd, _ = chat_mdl.chat(prompt, [{"role": "user", "content": content}], {"temperature": 0.2})
kwd = chat_mdl.chat(prompt, [{"role": "user", "content": content}], {"temperature": 0.2})
if isinstance(kwd, tuple): return kwd[0]
return kwd