Skip to content

Commit

Permalink
Revert name change
Browse files Browse the repository at this point in the history
Signed-off-by: JonahSussman <[email protected]>
  • Loading branch information
JonahSussman committed Jan 10, 2025
1 parent cb64002 commit 0258c35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/initialize.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ log_level = "INFO"
file_log_level = "DEBUG"
log_dir_path = "./logs"

[models]
[model_provider]
provider = "ChatIBMGenAI"

[models.args]
Expand Down
2 changes: 1 addition & 1 deletion kai/reactive_codeplanner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def main() -> None:

logging.init_logging_from_log_config(kai_config.log_config)

model_provider = ModelProvider(kai_config.models)
model_provider = ModelProvider(kai_config.model_provider)

analyzer = AnalyzerLSP(
analyzer_lsp_server_binary=Path(args.analyzer_lsp_server_binary),
Expand Down
4 changes: 2 additions & 2 deletions kai/rpc_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class KaiRpcApplicationConfig(CamelCaseBaseModel):
process_id: Optional[int] = None

root_path: AutoAbsPath
models: KaiConfigModels
model_provider: KaiConfigModels

log_config: KaiLogConfig

Expand Down Expand Up @@ -176,7 +176,7 @@ def initialize(

try:
model_provider = ModelProvider(
app.config.models, app.config.demo_mode, app.config.cache_dir
app.config.model_provider, app.config.demo_mode, app.config.cache_dir
)
except Exception as e:
app.log.error("unable to get model provider:", e)
Expand Down

0 comments on commit 0258c35

Please sign in to comment.