Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Add apiBase to autocomplete model - #24

Merged
lukehinds merged 1 commit into
stacklok:mainfrom
eleftherias:patch-2
Nov 18, 2024
Merged

lukehinds merged 1 commit into
stacklok:mainfrom
eleftherias:patch-2

Conversation

@eleftherias

Copy link
Copy Markdown
Member

This is needed for JetBrains IDEs.

Without this, the prompt will hang forever and the logs will show this message:

[info] Starting Continue core...
[2024-11-18T09:57:36] [info] Starting Continue core... 
[2024-11-18T09:57:36] Setup 
[2024-11-18T09:57:36] Core started 
[2024-11-18T09:57:37] HTTP 401 Unauthorized from https://api.openai.com/v1/models

{
  "error": {
    "message": "Incorrect API key provided: stlk_033*********************************************************1b9a. You can find your API key at https://platform.openai.com/account/api-keys.",
    "type": "invalid_request_error",
    "param": null,
    "code": "invalid_api_key"
  }
}

Code: undefined
Error number: undefined
Syscall: undefined
Type: undefined

Error: HTTP 401 Unauthorized from https://api.openai.com/v1/models

{
  "error": {
    "message": "Incorrect API key provided: stlk_033*********************************************************1b9a. You can find your API key at https://platform.openai.com/account/api-keys.",
    "type": "invalid_request_error",
    "param": null,
    "code": "invalid_api_key"
  }
}
    at customFetch (/snapshot/continue/binary/out/index.js:471442:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async withExponentialBackoff (/snapshot/continue/binary/out/index.js:471175:22) 

@lukehinds
lukehinds merged commit 7d2589d into stacklok:main Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants