-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Ctrl+I] intellij Edit bubble can‘t display model name #3733
Comments
@AfterStories can you share your config.json and the version of Continue you are on? |
@Patrick-Erichsen The only thing I changed in config.json is model ,And based on my custom deve requirements, I need to display the model name as something like Gosu instead of claude, even though I use anthropic model "Gosu" can be displayed under the input box of the chat webview, but it is displayed as null in the Edit bubble. is it can't display a custom string here?
|
Ah - I wonder if the space is causing issues? Can you trim the trailing space in your e.g. |
@Patrick-Erichsen InlineEditAction.kt : Line 130 This is your source code, directly use the response as config :
But the config data is in responese. And I can successfully get the value of the modelTitles ,and it can be displayed successfully I don't understand kotlin code, I think maybe my changes are not accurate, so it still need you team as experts to fix the code, thanks~ |
And I also found same problem in CoreMessengerManager.kt: Line 63
there is a result layer of in data, so profileInfo cannot directly get config here Maybe there are similar problems in other files, please check |
@AfterStories excellent work getting to the bottom of this! Made the fix here: https://github.com/continuedev/continue/pull/3754/files This will be available in the EAP/pre-release for 0.0.86 we'll be releasing today. Thanks for your help! |
Before submitting your bug report
Relevant environment info
No response
Description
When I select a piece of code and use the CTRL+I shortcut key, as shown in the screenshot, you can see that the model name is not displayed, only show a null ,But pressing the Enter key to send the question can call the API successful, so I think it has get the data in config.json, but it just can't display it
And at the same time, the log in the Run Extension window:
Error handling message: {"messageType":"config/getSerializedProfileInfo","data":{"result":{"config":{"allowAnonymousTelemetry":false,"models":[{"provider":"anthropic","model":"Gosu Model","title":"Gosu Model"... ....(After here, it's my config. json content)
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.collections.Map<kotlin.String, kotlin.Any>
Registered handler for editor
I recorded a demo video:
https://github.com/user-attachments/assets/d33e7f10-45c7-4443-8440-6cd7158eaf73
To reproduce
No response
Log output
The text was updated successfully, but these errors were encountered: