Feat: Removes hardcoded user prompts from adapters
<!-- .github/pull_request_template.md --> ## Description Removes hardcoded user prompts from adapters ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com>
This commit is contained in:
parent
94c785d231
commit
08bc472b00
3 changed files with 4 additions and 7 deletions
|
|
@ -40,8 +40,7 @@ class GenericAPIAdapter(LLMInterface):
|
||||||
messages=[
|
messages=[
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": f"""Use the given format to
|
"content": f"""{text_input}""",
|
||||||
extract information from the following input: {text_input}. """,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class OllamaAPIAdapter(LLMInterface):
|
||||||
messages=[
|
messages=[
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": f"Use the given format to extract information from the following input: {text_input}",
|
"content": f"{text_input}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,7 @@ class OpenAIAdapter(LLMInterface):
|
||||||
messages=[
|
messages=[
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": f"""Use the given format to
|
"content": f"""{text_input}""",
|
||||||
extract information from the following input: {text_input}. """,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
|
|
@ -91,8 +90,7 @@ class OpenAIAdapter(LLMInterface):
|
||||||
messages=[
|
messages=[
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": f"""Use the given format to
|
"content": f"""{text_input}""",
|
||||||
extract information from the following input: {text_input}. """,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue