Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/agent/main_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ def get_llm_model(
):
if AIModel.Ollama_DeepSeek_14b.value in model_name.model:
return ChatOllama(model=AIModel.Ollama_DeepSeek_14b.value).with_structured_output(output_pydantic_class)

elif AIModel.Ollama_Gemma_7b.value in model_name.model:
return ChatOllama(model=AIModel.Ollama_Gemma_7b.value).with_structured_output(output_pydantic_class)
else:
#we could specify which model to use here always, for now if not deepseek then just use gpt4-o
return ChatOpenAI(model=AIModel.GPT_4O.value).with_structured_output(output_pydantic_class)
return ChatOpenAI(model_name=AIModel.GPT_4O.value).with_structured_output(output_pydantic_class)


def run_main_agent(
Expand Down
4 changes: 2 additions & 2 deletions src/agent/prompt_enahncer/prompt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
agents_prompt = """ You are an prompt enahncer agent with over 10 years of experince in ehancing user prompt for SQA purposes.

You will be provided with a user query which primarily will be a qa test to perform and extracted web snippet on which the tests will be performed.

Your job is to analyse the user prompt, and enahnce it to perform best sqa on the web snippet accordingly.

' User QA prompt ': "{input}"
Expand All @@ -22,6 +20,8 @@
- Do not enhance the prompt to test UI/animations of a webpage please.
- If the user has prompt to test the UI/animation, please get rid of that part in the prompt, and enhance only the functionality testing part.

- Make sure that the url is always mentioned in the prompt.

Output Structure:
Return the result as a JSON object in the following format ONLY:
{
Expand Down
3 changes: 2 additions & 1 deletion src/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
class AIModel(Enum):
GPT_4 = "gpt-4"
GPT_4O = "gpt-4o"
Ollama_DeepSeek_14b = "deepseek-r1:14b"
Ollama_DeepSeek_14b = "deepseek-r1:14b"
Ollama_Gemma_7b = "gemma:7b"
2 changes: 1 addition & 1 deletion src/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"gemini-1.5-flash-8b-latest", "gemini-2.0-flash-thinking-exp-01-21", "gemini-2.0-pro-exp-02-05",
"gemini-2.5-pro-preview-03-25", "gemini-2.5-flash-preview-04-17"],
"ollama": ["qwen2.5:7b", "qwen2.5:14b", "qwen2.5:32b", "qwen2.5-coder:14b", "qwen2.5-coder:32b", "llama2:7b",
"deepseek-r1:14b", "deepseek-r1:32b"],
"deepseek-r1:14b", "deepseek-r1:32b", "gemma:7b"],
"azure_openai": ["gpt-4o", "gpt-4", "gpt-3.5-turbo"],
"mistral": ["pixtral-large-latest", "mistral-large-latest", "mistral-small-latest", "ministral-8b-latest"],
"alibaba": ["qwen-plus", "qwen-max", "qwen-vl-max", "qwen-vl-plus", "qwen-turbo", "qwen-long"],
Expand Down