Update examples to work with the separate controller and lm modules
This commit is contained in:
@@ -14,7 +14,7 @@ import json
|
||||
import csv
|
||||
from statistics import fmean
|
||||
from typing import Dict, List, Callable, Set, Union
|
||||
from graph_of_thoughts import controller, operations, prompter, parser
|
||||
from graph_of_thoughts import controller, language_models, operations, prompter, parser
|
||||
|
||||
|
||||
class DocMergePrompter(prompter.Prompter):
|
||||
@@ -714,8 +714,8 @@ def run(
|
||||
f"Budget has been depleted, stopping. Method {method.__name__} has not been run."
|
||||
)
|
||||
break
|
||||
lm = controller.ChatGPT(
|
||||
"../../graph_of_thoughts/controller/config.json",
|
||||
lm = language_models.ChatGPT(
|
||||
"../../graph_of_thoughts/language_models/config.json",
|
||||
model_name=lm_name,
|
||||
cache=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user