| 3 | * The configuration for a code index. |
| 4 | */ |
| 5 | export interface CodeIndexConfig { |
| 6 | /** |
| 7 | * The model to use when generating embeddings. |
| 8 | */ |
| 9 | model: string; |
| 10 | /** |
| 11 | * The maximum number of tokens to use when generating embeddings. |
| 12 | */ |
| 13 | max_input_tokens: number; |
| 14 | /** |
| 15 | * The maximum number of tokens to use when generating completions. |
| 16 | */ |
| 17 | max_tokens: number; |
| 18 | /** |
| 19 | * The sources to index. |
| 20 | */ |
| 21 | sources: string[]; |
| 22 | /** |
| 23 | * The temperature to use when generating completions. |
| 24 | */ |
| 25 | temperature: number; |
| 26 | /** |
| 27 | * Optional. The extensions to index. |
| 28 | */ |
| 29 | extensions?: string[]; |
| 30 | } |
| 31 | /** |
| 32 | * Keys to use for OpenAI embeddings and models. |
| 33 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected