mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
add error to groq
This commit is contained in:
parent
b1a36b15c2
commit
f8278c8a46
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ All apis have default models and urls, so those fields are optional. The `params
|
|||
|
||||
Embedding models are used to embed and efficiently select relevant examples for conversation and coding.
|
||||
|
||||
Supported Embedding APIs: `openai`, `google`, `replicate`, `huggingface`, `groq`, `novita`
|
||||
Supported Embedding APIs: `openai`, `google`, `replicate`, `huggingface`, `novita`
|
||||
|
||||
If you try to use an unsupported model, then it will default to a simple word-overlap method. Expect reduced performance, recommend mixing APIs to ensure embedding support.
|
||||
|
||||
|
|
|
@ -48,6 +48,6 @@ export class GroqCloudAPI {
|
|||
}
|
||||
|
||||
async embed(text) {
|
||||
console.log("There is no support for embeddings in Groq support. However, the following text was provided: " + text);
|
||||
throw new Error('Embeddings are not supported by Groq.');
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue