Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👻 Config changes #526

Merged
merged 16 commits into from
Jan 13, 2025
Merged

👻 Config changes #526

merged 16 commits into from
Jan 13, 2025

Conversation

JonahSussman
Copy link
Contributor

@JonahSussman JonahSussman commented Dec 11, 2024

This pr has the following changes:

  • config.toml is outta here
  • You supply initial log levels via command line arguments (see add_arguments in kai/rpc_server/main.py
  • All other config is supplied over an initialize request (see KaiRpcApplicationConfig in kai/rpc_server/server.py)

@JonahSussman JonahSussman force-pushed the config_changes branch 3 times, most recently from 7edf779 to 9b3f41d Compare December 12, 2024 17:01
sjd78 added a commit to sjd78/editor-extensions that referenced this pull request Dec 13, 2024
Resolves: konveyor#160

Pending konveyor/kai#526, this change
is needed so the kai-rpc-server starts.  The initialize call
should still override any model configurations in the toml file.

Once the kai change to remove config.toml is merged, the
TODOs added by this change will need to be resolved.

Signed-off-by: Scott J Dickerson <[email protected]>
djzager pushed a commit to konveyor/editor-extensions that referenced this pull request Dec 16, 2024
Resolves: #160

Pending konveyor/kai#526, this change is needed
so the kai-rpc-server starts. The initialize call should still override
any model configurations in the toml file.

Once the kai change to remove `config.toml` is merged, the TODOs added
by this change will need to be resolved.

Signed-off-by: Scott J Dickerson <[email protected]>
Co-authored-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: JonahSussman <[email protected]>
Signed-off-by: JonahSussman <[email protected]>
Signed-off-by: JonahSussman <[email protected]>
Signed-off-by: JonahSussman <[email protected]>
Copy link
Contributor

@shawn-hurley shawn-hurley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor points on logging otherwise LGTM

kai/llm_interfacing/model_provider.py Outdated Show resolved Hide resolved
kai/logging/logging.py Show resolved Hide resolved
Signed-off-by: JonahSussman <[email protected]>
@JonahSussman JonahSussman marked this pull request as ready for review January 13, 2025 18:28
Signed-off-by: JonahSussman <[email protected]>
@sjd78
Copy link
Member

sjd78 commented Jan 13, 2025

It is safe to merge this before konveyor/editor-extensions#190 since we don't have scripted download of the workflow generated binaries quite yet. editor-extensions main will use released assets until we switch over. Hopefully this will be ready soon.

The ide devs can test 190 by manually downloading the binaries needed.

@shawn-hurley shawn-hurley merged commit 78f31fa into konveyor:main Jan 13, 2025
14 checks passed
sjd78 added a commit to sjd78/editor-extensions that referenced this pull request Jan 14, 2025
Based on changes to the kai runtime configurations
in konveyor/kai#526, update
the CLI arguments and initialize request object to
match.

Summary of changes:
  - Reorder the config field definitions

  - Use enum values in config definitions where available

  - Config keys with order 99 probably can be removed
    as they don't appear to be used

  - Aligned CLI arguments and initialize request payload
    types to the updated Kai configuration keys

  - Dropped config.toml handling since that file is no
    longer in use

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 added a commit to sjd78/editor-extensions that referenced this pull request Jan 15, 2025
Based on changes to the kai runtime configurations
in konveyor/kai#526, update
the CLI arguments and initialize request object to
match.

Summary of changes:
  - Reorder the config field definitions

  - Use enum values in config definitions where available

  - Config keys with order 99 probably can be removed
    as they don't appear to be used

  - Aligned CLI arguments and initialize request payload
    types to the updated Kai configuration keys

  - Dropped config.toml handling since that file is no
    longer in use

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 pushed a commit to konveyor/editor-extensions that referenced this pull request Jan 15, 2025
Update initialize parameters to align with
konveyor/kai#526. 

---------

Signed-off-by: Jonah Sussman <[email protected]>
sjd78 added a commit to sjd78/editor-extensions that referenced this pull request Jan 15, 2025
Based on changes to the kai runtime configurations
in konveyor/kai#526, update
the CLI arguments and initialize request object to
match.

Summary of changes:
  - Reorder the config field definitions

  - Use enum values in config definitions where available

  - Config keys with order 99 probably can be removed
    as they don't appear to be used

  - Aligned CLI arguments and initialize request payload
    types to the updated Kai configuration keys

  - Dropped config.toml handling since that file is no
    longer in use

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 added a commit to konveyor/editor-extensions that referenced this pull request Jan 15, 2025
Based on changes to the kai runtime configurations in
konveyor/kai#526, update the CLI arguments and
initialize request object to match.

Summary of changes:
  - Reorder the config field definitions

  - Use enum values in config definitions where available

  - Config keys related to analyzer configuration still remain but cannot
    be passed along to the analyzer, see [kai issue 550](konveyor/kai#550)

  - Aligned CLI arguments and initialize request payload types to the
    updated Kai configuration keys

  - Dropped config.toml handling since that file is no longer in use

Prerequisite for: #184

---------

Signed-off-by: Scott J Dickerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants