Skip to content

Commit

Permalink
Initial chat (#27)
Browse files Browse the repository at this point in the history
* sophia rename. Initial chat service

* Update package-lock.json

* Initial chat functionality

* chore: Add allowImportingTsExtensions option to tsconfig.json

* fix: add noEmit option to tsconfig.json

* fix: Add spinner and emit message sent event

* fix: Update chat-message.component.html with margin adjustments

* fix: Update chat message component

* feat: Add updatedAt field to Chat model

* fix: Update LlmMessage interface and ChatMessageComponent

* feat: Add chat message display without header

* fix: Update chat component layout

* fix: Update chat component layout

* Update chat

* Fix updatedAt and test user id

* Update api-chat.service.spec.ts

* disable default test

* feat: Generate summary documentation for a project

* feat: Update `generateFolderSummary` to include the parent summaries and other additions to the prompt

* various updates

* frontend lint

* feat: Implement scrolling to the bottom of the chat after loading

* fix: Resolve TypeScript error in ChatComponent

* fix: Implement scrolling to bottom of chat after loading

* feat: Add console logs for debugging chat component lifecycle hooks

* fix: Implement scrolling improvements in chat component

* fix: Implement scrolling improvements in ChatComponent

* feat: Add LLM selection to chat controls

* fix: Update chat controls component

* fix: Resolve compile errors in ChatControlsComponent

* feat: Implement shared LLM service and update components

* feat: use LlmService to fetch LLMs

* feat: Add LLM service

* feat: add LlmService and import it in shared module

* fix: Update ChatControlsComponent to use LlmService
feat: Add error handling and retry logic to LlmService
test: Add unit tests for LlmService

* update chat

* lint and test fix
  • Loading branch information
danielcampagnolitg authored Sep 18, 2024
1 parent 102d6c1 commit af46dbf
Show file tree
Hide file tree
Showing 111 changed files with 2,374 additions and 908 deletions.
3 changes: 2 additions & 1 deletion bin/aider
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Convenience script for running Aider
source variables/local.env
export VERTEXAI_PROJECT=$GCLOUD_PROJECT
export VERTEXAI_LOCATION=$GCLOUD_REGION
export VERTEXAI_LOCATION=$GCLOUD_CLAUDE_REGION
echo $VERTEXAI_PROJECT $VERTEXAI_LOCATION
aider --model vertex_ai/claude-3-5-sonnet@20240620
7 changes: 6 additions & 1 deletion docs/docs/chatbot.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# ChatBot
# Slack Chat Bot

Slack chatbot

https://github.com/TrafficGuard/sophia/blob/main/src/modules/slack/slackChatBotService.ts

Work in progress, documentation coming soon.
2 changes: 1 addition & 1 deletion docs/docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This document provides comprehensive details about the environment variables uti
- **Description**: The base URL for the user interface.
- **Default Value**: `http://localhost:4200/`

**NOUS_FS**
**SOPHIA_FS**

- **Description**: The base path for the FileSystem interface/tool. Useful for editing code in other local repositories. Alternatively use the -fs= arg.
- **Default Value**: (Not set - defaults to `process.cwd()`)
Expand Down
6 changes: 5 additions & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#
<a id="banner"></a>
<p align="center">
<img src="https://public.trafficguard.ai/sophia/banner.png" alt="nous logo"/>
</p>
<p align="center">
<em>The open-source TypeScript platform for autonomous AI agents and LLM based workflows</em>
</p>
The Ancient Greek word <em><b>sophía (σοφία)</b></em> is the abstract noun of σοφός (sophós), which variously translates to "clever, skillful, intelligent, wise"
<p align="center">

</p>
## The Sophia Story

The Ancient Greek word <em><b>sophía (σοφία)</b></em> variously translates to "clever, skillful, intelligent, wise"

Sophia started from a simple goal: to harness AI's potential to enhance real-world productivity, born in DevOps and Platform Engineering space. We envisioned a tool that could:

- Automate various processes and support requests, and triage build failures.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Documentation for deploying on Google Cloud will be provided soon.

Keep the Firestore emulator running in a separate shell or in the background
```bash
gcloud emulators firestore start --host-port=127.0.0.1:8243
npm run emulators
```
```bash
npm run test
Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nav:
- autonomous-agents.md
- software-engineer.md
- code-review.md
- chatbot.md
- integrations.md
- roadmap.md
- Blog:
Expand Down
Loading

0 comments on commit af46dbf

Please sign in to comment.