-
Notifications
You must be signed in to change notification settings - Fork 35
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
Usage of openai configuration throws exception Completions.create() got an unexpected keyword argument 'model_id' #394
Comments
I next ran with
Below is sample of console output as I generated a fix.
The difference of this run versus my first is this run is from |
I think this behavior is only seen with
|
Pydantic calls a deep update method on each of its sources instead of overriding them. I see a couple of paths forward:
|
Seeing an issue of:
Completions.create() got an unexpected keyword argument 'model_id',
when I attempt to run with an OpenAI config.I believe I see the issue and described the problem in this comment: #394 (comment)
We are merging values from a config file built inside of the container AND the specified config to run with, this creates an incompatibility when using a provider that is NOT using the keyword
model_id
I used the example we have at https://github.com/konveyor/kai/blob/main/build/config_example.toml as a starting point and slightly tweaked the example for gpt-4o.
I am testing from a podman compose up flow, I built the latest code as of 9/26 into a tag of 'local'.
I am running the Kai server as:
TAG="local" podman compose up
Next, I want to use a custom config, so I followed the pattern of copying the
config_example.toml
in the 'build' directoryThen I edited the 'config.toml' to comment out the mixtral section and then make the below config active
Below is what I see when I attempt to generate a fix for a file
Snippet of console output
The text was updated successfully, but these errors were encountered: