-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add back
memgpt/configs
folder (#1431)
Co-authored-by: cpacker <packercharles@gmail.com>
- Loading branch information
1 parent
0eef95f
commit f8eb5d8
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"context_window": 8192, | ||
"model_endpoint_type": "openai", | ||
"model_endpoint": "https://inference.memgpt.ai", | ||
"model": "memgpt-openai", | ||
"embedding_endpoint_type": "hugging-face", | ||
"embedding_endpoint": "https://embeddings.memgpt.ai", | ||
"embedding_model": "BAAI/bge-large-en-v1.5", | ||
"embedding_dim": 1024, | ||
"embedding_chunk_size": 300 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"context_window": 8192, | ||
"model": "gpt-4", | ||
"model_endpoint_type": "openai", | ||
"model_endpoint": "https://api.openai.com/v1", | ||
"model_wrapper": null, | ||
"embedding_endpoint_type": "openai", | ||
"embedding_endpoint": "https://api.openai.com/v1", | ||
"embedding_model": "text-embedding-ada-002", | ||
"embedding_dim": 1536, | ||
"embedding_chunk_size": 300 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from memgpt.cli.cli import QuickstartChoice, quickstart | ||
from memgpt.config import MemGPTConfig | ||
|
||
|
||
def test_quickstart(): | ||
|
||
# openai | ||
quickstart(QuickstartChoice.openai, debug=True, terminal=False) | ||
config = MemGPTConfig.load() | ||
assert config.default_llm_config.model_endpoint_type == "openai" | ||
assert config.default_embedding_config.embedding_endpoint_type == "openai" | ||
|
||
# memgpt | ||
quickstart(QuickstartChoice.memgpt_hosted, debug=True, terminal=False) | ||
config = MemGPTConfig.load() | ||
assert config.default_llm_config.model_endpoint == "https://inference.memgpt.ai" | ||
assert config.default_embedding_config.embedding_endpoint == "https://embeddings.memgpt.ai" |