Spaces:
Paused
Paused
Commit
·
1a90d86
1
Parent(s):
0fba674
Update app/editor/copilot.ts
Browse files- app/editor/copilot.ts +2 -2
app/editor/copilot.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const defaultllmParams: llmParams = {
|
|
| 41 |
|
| 42 |
export const defaultConfig: Config = {
|
| 43 |
llmKey: '',
|
| 44 |
-
llmUrl: 'https://matthoffner-wizardcoder-ggml.hf.space',
|
| 45 |
llmParams: defaultllmParams,
|
| 46 |
cursorStyleLoading: 'underline',
|
| 47 |
cursorStyleNormal: 'line',
|
|
@@ -68,7 +68,7 @@ async function fetchCompletionFromllm(
|
|
| 68 |
let text = ''
|
| 69 |
|
| 70 |
return new Promise(async (resolve, reject) => {
|
| 71 |
-
await fetchSSE(
|
| 72 |
method: 'POST',
|
| 73 |
headers: {
|
| 74 |
'Content-Type': 'application/json',
|
|
|
|
| 41 |
|
| 42 |
export const defaultConfig: Config = {
|
| 43 |
llmKey: '',
|
| 44 |
+
llmUrl: 'https://matthoffner-wizardcoder-ggml.hf.space/v0/chat/completions',
|
| 45 |
llmParams: defaultllmParams,
|
| 46 |
cursorStyleLoading: 'underline',
|
| 47 |
cursorStyleNormal: 'line',
|
|
|
|
| 68 |
let text = ''
|
| 69 |
|
| 70 |
return new Promise(async (resolve, reject) => {
|
| 71 |
+
await fetchSSE(config.llmUrl, {
|
| 72 |
method: 'POST',
|
| 73 |
headers: {
|
| 74 |
'Content-Type': 'application/json',
|