Skip to content

Commit 9859780

Browse files
committed
fix: address typo in function name
1 parent d53204d commit 9859780

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/web/src/components/cells/code.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { useCells } from '@srcbook/components/src/components/use-cell';
2020
import { mapCMLocationToTsServer, mapTsServerLocationToCM } from './util';
2121
import { toast } from 'sonner';
2222
import { getFileContent } from '@/lib/server';
23-
import { runCodiumAiAutocomplete } from '@/lib/ai-autocomplete';
23+
import { runCodeiumAiAutocomplete } from '@/lib/ai-autocomplete';
2424
import { tsHover } from '@/components/cells/hover';
2525
import { autocompletion } from '@codemirror/autocomplete';
2626
import { type Diagnostic, linter } from '@codemirror/lint';
@@ -385,7 +385,7 @@ export default function ControlledCodeCell(props: Props) {
385385
inlineCopilot(async (prefix, suffix) => {
386386
let response;
387387
try {
388-
response = await runCodiumAiAutocomplete(
388+
response = await runCodeiumAiAutocomplete(
389389
codeiumApiKey ?? null,
390390
prefix + suffix,
391391
cell.language,

packages/web/src/lib/ai-autocomplete/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const EDITOR_API_KEY = 'd49954eb-cfba-4992-980f-d8fb37f0e942';
1010

1111
// NOTE: The below logic has been adapted from codeium's `@codeium/react-code-editor package. See here:
1212
// https://github.com/Exafunction/codeium-react-code-editor/blob/768e1b231c00e078c86bc19c8ede697a1e37ec75/src/components/CodeiumEditor/CompletionProvider.ts#L147-L159
13-
export async function runCodiumAiAutocomplete(
13+
export async function runCodeiumAiAutocomplete(
1414
optionalApiKey: string | null,
1515
source: string,
1616
sourceLanguage: 'javascript' | 'typescript',

0 commit comments

Comments
 (0)