File tree Expand file tree Collapse file tree
packages/web/src/lib/ai-autocomplete Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ import { type CodiumCompletionResult } from '@srcbook/shared';
55import languageServerProto from './language-server-proto' ;
66
77// NOTE: this EDITOR_API_KEY value was just included as a raw string in
8- // @codeium /react-code-editor. This seems to not be a secret?
8+ // @codeium /react-code-editor. This seems to not be a secret? See here:
9+ // https://github.com/Exafunction/codeium-react-code-editor/blob/768e1b231c00e078c86bc19c8ede697a1e37ec75/src/components/CodeiumEditor/CompletionProvider.ts#L48
910const EDITOR_API_KEY = 'd49954eb-cfba-4992-980f-d8fb37f0e942' ;
1011
12+ // NOTE: The below logic has been adapted from codeium's `@codeium/react-code-editor package. See here:
13+ // https://github.com/Exafunction/codeium-react-code-editor/blob/768e1b231c00e078c86bc19c8ede697a1e37ec75/src/components/CodeiumEditor/CompletionProvider.ts#L147-L159
1114export async function runCodiumAiAutocomplete (
1215 optionalApiKey : string | null ,
1316 source : string ,
You can’t perform that action at this time.
0 commit comments