Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj committed Oct 8, 2024
1 parent 5ef6381 commit 5ad2924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def artifact(self, query: str, old_code: Optional[str] = None) -> Dict:
ChatMessage(role="user", content=user_message),
]
try:
sllm = Settings.llm.as_structured_llm(output_cls=CodeArtifact)
sllm = Settings.llm.as_structured_llm(output_cls=CodeArtifact) # type: ignore
response = sllm.chat(messages)
data: CodeArtifact = response.raw
return data.model_dump()
Expand Down
2 changes: 2 additions & 0 deletions templates/types/streaming/fastapi/app/engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .engine import get_chat_engine as get_chat_engine

__all__ = ["get_chat_engine"]

0 comments on commit 5ad2924

Please sign in to comment.