alaa wael commited on
Commit ·
6eb2e17
1
Parent(s): 5d9a76c
alaa handeled content2
Browse files
agents/content_phase/content_generation.py
CHANGED
|
@@ -45,7 +45,7 @@ def course_writer_agent():
|
|
| 45 |
llm=model,
|
| 46 |
verbose=True,
|
| 47 |
memory=False, # alaa changed to false
|
| 48 |
-
examples=[Example1, Example2, Example3, Example4
|
| 49 |
allow_delegation=False,
|
| 50 |
)
|
| 51 |
|
|
|
|
| 45 |
llm=model,
|
| 46 |
verbose=True,
|
| 47 |
memory=False, # alaa changed to false
|
| 48 |
+
examples=[Example1, Example2, Example3, Example4],
|
| 49 |
allow_delegation=False,
|
| 50 |
)
|
| 51 |
|
agents/final_outliners/subtopics_generator.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from crewai import Agent, Task, Crew, Process, LLM
|
| 2 |
import os
|
| 3 |
import json
|
| 4 |
-
from modules import
|
| 5 |
from schemas import FullCurriculumStructure
|
| 6 |
|
| 7 |
|
|
|
|
| 1 |
from crewai import Agent, Task, Crew, Process, LLM
|
| 2 |
import os
|
| 3 |
import json
|
| 4 |
+
from modules import llm_g
|
| 5 |
from schemas import FullCurriculumStructure
|
| 6 |
|
| 7 |
|
agents/final_outliners/validator.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from crewai import Agent, Task, Crew, Process, LLM
|
| 2 |
import os
|
| 3 |
import json
|
| 4 |
-
from modules import
|
| 5 |
from schemas import ValidatedCurriculumOutput, validated_parser
|
| 6 |
from functools import cache
|
| 7 |
|
|
|
|
| 1 |
from crewai import Agent, Task, Crew, Process, LLM
|
| 2 |
import os
|
| 3 |
import json
|
| 4 |
+
from modules import llm_g
|
| 5 |
from schemas import ValidatedCurriculumOutput, validated_parser
|
| 6 |
from functools import cache
|
| 7 |
|
modules/env.py
CHANGED
|
@@ -60,7 +60,7 @@ def llm_4m():
|
|
| 60 |
|
| 61 |
def llm_open_4m():
|
| 62 |
return LLM(
|
| 63 |
-
api_key=
|
| 64 |
base_url="https://openrouter.ai/api/v1",
|
| 65 |
model="openrouter/openai/gpt-4.1-mini",
|
| 66 |
)
|
|
@@ -72,7 +72,7 @@ def llm_5n():
|
|
| 72 |
|
| 73 |
def llm_open_c3():
|
| 74 |
return LLM(
|
| 75 |
-
api_key=
|
| 76 |
base_url="https://openrouter.ai/api/v1",
|
| 77 |
model="openrouter/anthropic/claude-3-haiku",
|
| 78 |
# streaming=False,
|
|
@@ -80,14 +80,14 @@ def llm_open_c3():
|
|
| 80 |
|
| 81 |
def llm_open_c35():
|
| 82 |
return LLM(
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
)
|
| 88 |
def llm_open_nova():
|
| 89 |
return LLM(
|
| 90 |
-
api_key=
|
| 91 |
base_url="https://openrouter.ai/api/v1",
|
| 92 |
model="openrouter/amazon/nova-2-lite-v1",
|
| 93 |
# streaming=False,
|
|
@@ -96,15 +96,15 @@ def llm_open_nova():
|
|
| 96 |
|
| 97 |
def llm_open_hermes():
|
| 98 |
return LLM(
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
)
|
| 104 |
|
| 105 |
def llm_open_grok():
|
| 106 |
return LLM(
|
| 107 |
-
api_key=
|
| 108 |
base_url="https://openrouter.ai/api/v1",
|
| 109 |
model="openrouter/x-ai/grok-4.1-fast",
|
| 110 |
max_tokens=15000,
|
|
@@ -113,7 +113,7 @@ def llm_open_grok():
|
|
| 113 |
|
| 114 |
def llm_open_g25pro():
|
| 115 |
return LLM(
|
| 116 |
-
api_key=
|
| 117 |
base_url="https://openrouter.ai/api/v1",
|
| 118 |
model="openrouter/google/gemini-2.5-pro",
|
| 119 |
# streaming=False,
|
|
@@ -131,7 +131,7 @@ def model():
|
|
| 131 |
|
| 132 |
def llm_qwen():
|
| 133 |
return LLM(
|
| 134 |
-
api_key=
|
| 135 |
base_url="https://openrouter.ai/api/v1",
|
| 136 |
model="openrouter/qwen/qwen3.6-plus:free",
|
| 137 |
# streaming=False,
|
|
@@ -140,7 +140,7 @@ def llm_qwen():
|
|
| 140 |
def model_open_router():
|
| 141 |
return ChatOpenRouter(
|
| 142 |
model="x-ai/grok-4.1-fast",
|
| 143 |
-
api_key=
|
| 144 |
temperature=0.2,
|
| 145 |
max_retries=2,
|
| 146 |
)
|
|
|
|
| 60 |
|
| 61 |
def llm_open_4m():
|
| 62 |
return LLM(
|
| 63 |
+
api_key=openrouter_key,
|
| 64 |
base_url="https://openrouter.ai/api/v1",
|
| 65 |
model="openrouter/openai/gpt-4.1-mini",
|
| 66 |
)
|
|
|
|
| 72 |
|
| 73 |
def llm_open_c3():
|
| 74 |
return LLM(
|
| 75 |
+
api_key=openrouter_key,
|
| 76 |
base_url="https://openrouter.ai/api/v1",
|
| 77 |
model="openrouter/anthropic/claude-3-haiku",
|
| 78 |
# streaming=False,
|
|
|
|
| 80 |
|
| 81 |
def llm_open_c35():
|
| 82 |
return LLM(
|
| 83 |
+
api_key=openrouter_key,
|
| 84 |
+
base_url="https://openrouter.ai/api/v1",
|
| 85 |
+
model="openrouter/anthropic/claude-3.5-haiku",
|
| 86 |
+
# streaming=False,
|
| 87 |
+
)
|
| 88 |
def llm_open_nova():
|
| 89 |
return LLM(
|
| 90 |
+
api_key=openrouter_key,
|
| 91 |
base_url="https://openrouter.ai/api/v1",
|
| 92 |
model="openrouter/amazon/nova-2-lite-v1",
|
| 93 |
# streaming=False,
|
|
|
|
| 96 |
|
| 97 |
def llm_open_hermes():
|
| 98 |
return LLM(
|
| 99 |
+
api_key=openrouter_key,
|
| 100 |
+
base_url="https://openrouter.ai/api/v1",
|
| 101 |
+
model="openrouter/nousresearch/hermes-3-llama-3.1-405b:free",
|
| 102 |
+
# streaming=False,
|
| 103 |
)
|
| 104 |
|
| 105 |
def llm_open_grok():
|
| 106 |
return LLM(
|
| 107 |
+
api_key=openrouter_key,
|
| 108 |
base_url="https://openrouter.ai/api/v1",
|
| 109 |
model="openrouter/x-ai/grok-4.1-fast",
|
| 110 |
max_tokens=15000,
|
|
|
|
| 113 |
|
| 114 |
def llm_open_g25pro():
|
| 115 |
return LLM(
|
| 116 |
+
api_key=openrouter_key,
|
| 117 |
base_url="https://openrouter.ai/api/v1",
|
| 118 |
model="openrouter/google/gemini-2.5-pro",
|
| 119 |
# streaming=False,
|
|
|
|
| 131 |
|
| 132 |
def llm_qwen():
|
| 133 |
return LLM(
|
| 134 |
+
api_key=openrouter_key,
|
| 135 |
base_url="https://openrouter.ai/api/v1",
|
| 136 |
model="openrouter/qwen/qwen3.6-plus:free",
|
| 137 |
# streaming=False,
|
|
|
|
| 140 |
def model_open_router():
|
| 141 |
return ChatOpenRouter(
|
| 142 |
model="x-ai/grok-4.1-fast",
|
| 143 |
+
api_key=openrouter_key,
|
| 144 |
temperature=0.2,
|
| 145 |
max_retries=2,
|
| 146 |
)
|
routers/outliner_route.py
CHANGED
|
@@ -10,7 +10,6 @@ from agents.final_outliners import (
|
|
| 10 |
units_langchain1_agent,
|
| 11 |
)
|
| 12 |
from modules import (
|
| 13 |
-
llm_5m,
|
| 14 |
inputs,
|
| 15 |
)
|
| 16 |
from schemas import (
|
|
|
|
| 10 |
units_langchain1_agent,
|
| 11 |
)
|
| 12 |
from modules import (
|
|
|
|
| 13 |
inputs,
|
| 14 |
)
|
| 15 |
from schemas import (
|