docs: update the quickstart guide (+ misc fixes) (#701)

This commit is contained in:
Charles Packer
2025-01-18 14:16:12 -08:00
committed by GitHub
parent ef6fce8e0f
commit 541d29d0b7
3 changed files with 22 additions and 5 deletions

View File

@@ -168,7 +168,23 @@ class OpenAIProvider(Provider):
embedding_dim=1536,
embedding_chunk_size=300,
handle=self.get_handle("text-embedding-ada-002"),
)
),
EmbeddingConfig(
embedding_model="text-embedding-3-small",
embedding_endpoint_type="openai",
embedding_endpoint="https://api.openai.com/v1",
embedding_dim=2000,
embedding_chunk_size=300,
handle=self.get_handle("text-embedding-3-small"),
),
EmbeddingConfig(
embedding_model="text-embedding-3-large",
embedding_endpoint_type="openai",
embedding_endpoint="https://api.openai.com/v1",
embedding_dim=2000,
embedding_chunk_size=300,
handle=self.get_handle("text-embedding-3-large"),
),
]
def get_model_context_window_size(self, model_name: str):

View File

@@ -146,7 +146,7 @@ def create_application() -> "FastAPI":
log.error(f"Unhandled error: {exc}", exc_info=True)
# Print the stack trace
print(f"Stack trace: {exc.__traceback__}")
print(f"Stack trace: {exc}")
if (os.getenv("SENTRY_DSN") is not None) and (os.getenv("SENTRY_DSN") != ""):
import sentry_sdk

View File

@@ -79,9 +79,10 @@ class AgentManager:
# create blocks (note: cannot be linked into the agent_id is created)
block_ids = list(agent_create.block_ids or []) # Create a local copy to avoid modifying the original
for create_block in agent_create.memory_blocks:
block = self.block_manager.create_or_update_block(PydanticBlock(**create_block.model_dump()), actor=actor)
block_ids.append(block.id)
if agent_create.memory_blocks:
for create_block in agent_create.memory_blocks:
block = self.block_manager.create_or_update_block(PydanticBlock(**create_block.model_dump()), actor=actor)
block_ids.append(block.id)
# TODO: Remove this block once we deprecate the legacy `tools` field
# create passed in `tools`