mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-05 23:05:44 +02:00
Merge pull request #283 from wlvrx/main
Attack command fix and updated default embedding model
This commit is contained in:
commit
5cda572757
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ LLM backends can be specified as simply as `"model": "gpt-3.5-turbo"`. However,
|
||||||
"embedding": {
|
"embedding": {
|
||||||
"api": "openai",
|
"api": "openai",
|
||||||
"url": "https://api.openai.com/v1/",
|
"url": "https://api.openai.com/v1/",
|
||||||
"model": "text-embedding-ada-002"
|
"model": "text-embedding-3-small"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ export class GPT {
|
||||||
|
|
||||||
async embed(text) {
|
async embed(text) {
|
||||||
const embedding = await this.openai.embeddings.create({
|
const embedding = await this.openai.embeddings.create({
|
||||||
model: this.model_name || "text-embedding-ada-002",
|
model: this.model_name || "text-embedding-3-small",
|
||||||
input: text,
|
input: text,
|
||||||
encoding_format: "float",
|
encoding_format: "float",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue