-
-
Notifications
You must be signed in to change notification settings - Fork 465
Open
Labels
bugBugs reported by usersBugs reported by users
Description
Description
It accepts serverSettings here:
jupyter-ai/packages/jupyter-ai/src/completions/handler.ts
Lines 12 to 24 in 48b5c6f
| export class CompletionWebsocketHandler implements IDisposable { | |
| /** | |
| * The server settings used to make API requests. | |
| */ | |
| readonly serverSettings: ServerConnection.ISettings; | |
| /** | |
| * Create a new completion handler. | |
| */ | |
| constructor(options: AiService.IOptions = {}) { | |
| this.serverSettings = | |
| options.serverSettings ?? ServerConnection.makeSettings(); | |
| } |
But they are not passed there:
jupyter-ai/packages/jupyter-ai/src/completions/plugin.ts
Lines 61 to 76 in 48b5c6f
| activate: async ( | |
| app: JupyterFrontEnd, | |
| completionManager: ICompletionProviderManager, | |
| languageRegistry: IEditorLanguageRegistry, | |
| settingRegistry: ISettingRegistry, | |
| statusItem: IJaiStatusItem | null | |
| ): Promise<JaiCompletionToken> => { | |
| if (typeof completionManager.registerInlineProvider === 'undefined') { | |
| // Gracefully short-circuit on JupyterLab 4.0 and Notebook 7.0 | |
| console.warn( | |
| 'Inline completions are only supported in JupyterLab 4.1+ and Jupyter Notebook 7.1+' | |
| ); | |
| return null; | |
| } | |
| const completionHandler = new CompletionWebsocketHandler(); |
Reproduce
- Change app URL by providing a custom baseURL in page config or custom
serverSettings - See that inline completer webscocket does not connect
Expected behavior
It connects
Context
See:
Metadata
Metadata
Assignees
Labels
bugBugs reported by usersBugs reported by users