add error to groq

This commit is contained in:
MaxRobinsonTheGreat 2025-02-17 16:47:45 -06:00
parent b1a36b15c2
commit f8278c8a46
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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.');
}
}