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:
hajdul88 2025-05-21 12:18:30 +02:00 committed by GitHub
parent 94c785d231
commit 08bc472b00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -40,8 +40,7 @@ class GenericAPIAdapter(LLMInterface):
messages=[
{
"role": "user",
"content": f"""Use the given format to
extract information from the following input: {text_input}. """,
"content": f"""{text_input}""",
},
{
"role": "system",

View file

@ -39,7 +39,7 @@ class OllamaAPIAdapter(LLMInterface):
messages=[
{
"role": "user",
"content": f"Use the given format to extract information from the following input: {text_input}",
"content": f"{text_input}",
},
{
"role": "system",

View file

@ -63,8 +63,7 @@ class OpenAIAdapter(LLMInterface):
messages=[
{
"role": "user",
"content": f"""Use the given format to
extract information from the following input: {text_input}. """,
"content": f"""{text_input}""",
},
{
"role": "system",
@ -91,8 +90,7 @@ class OpenAIAdapter(LLMInterface):
messages=[
{
"role": "user",
"content": f"""Use the given format to
extract information from the following input: {text_input}. """,
"content": f"""{text_input}""",
},
{
"role": "system",