-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLLM_config.py
More file actions
68 lines (58 loc) · 1.44 KB
/
LLM_config.py
File metadata and controls
68 lines (58 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import os
from autogen import config_list_from_json
from pydantic import BaseModel
class Component(BaseModel):
pros: str
cons: str
design: str
details: str
class ComponentsMemory (BaseModel):
aim: str
Platform: str
Components: list[Component]
output: str
config_list = [
{
"model": "llama3.2:latest",
"base_url": "http://localhost:11434/v1",
"api_key": "ollama",
# "response_format":ComponentsMemory,
},
# {
# "model": "claude",
# "base_url": "http://localhost:11434/v1",
# "api_key": "ollama",
# },
# {
# "model": "qwen2.5-coder:7b",
# "base_url": "http://localhost:11434/v1",
# "api_key": "ollama",
# }
]
llm_config = {
"timeout": 600,
"cache_seed": 42,
"config_list": config_list,
"temperature": 0.02,
}
class CDMemory(BaseModel):
num_proposals:int|None =0
num_discussions: int|None =0
num_consensus: int|None =0
final_output_obtained: bool|None=False
output: str
CDA_config_list = [
{
"model": "llama3.2:latest",
"base_url": "http://localhost:11434/v1",
"api_key": "ollama",
# "response_format":CDMemory,
}]
llm_CDA_config = {
"timeout": 600,
"cache_seed": 42,
"config_list": CDA_config_list,
"temperature": 0.02,
# "max_tokens": 80, # Force brief responses
# "stop": ["\n\n"], # Prevent verbose output
}