Skip to content

Commit 0817361

Browse files
Initial version (#1)
* Added CI/CD pipeline. * Initial version
1 parent a111dbf commit 0817361

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to Google Cloud Functions
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
PROJECT_ID: ai-bim-assistant-poc
10+
FUNCTION_NAME: zoidberg-bim-assistant
11+
RUNTIME: nodejs20
12+
ENTRY_POINT: zoidbergAssistant
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Google Cloud SDK
23+
uses: google-github-actions/setup-gcloud@v0
24+
with:
25+
project_id: ${{ env.PROJECT_ID }}
26+
service_account_key: ${{ secrets.GCP_SA_KEY }}
27+
export_default_credentials: false
28+
29+
- name: Deploy to Google Cloud Functions
30+
run: |
31+
gcloud functions deploy ${{ env.FUNCTION_NAME }} \
32+
--runtime ${{ env.RUNTIME }} \
33+
--trigger-http \
34+
--entry-point ${{ env.ENTRY_POINT }} \
35+
--source .

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "aecworks-chatbot",
2+
"name": "zoidberg-ai",
33
"version": "1.0.0",
44
"dependencies": {
55
"@anthropic-ai/sdk": "^0.19.0",
@@ -9,9 +9,9 @@
99
"express": "^4.19.2"
1010
},
1111
"scripts": {
12-
"start": "functions-framework --target=aecWorksChatbot"
12+
"start": "functions-framework --target=zoidbergAssistant"
1313
},
1414
"devDependencies": {
1515
"dotenv": "^16.4.5"
1616
}
17-
}
17+
}

sendToClaude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function sendToClaude(prompt) {
1010
max_tokens: 4096,
1111
temperature: 0,
1212
system:
13-
"You're Zoidberg, an expert in AEC technology and BIM development that helps with Revit requests. When you receive a message, reply with Python code to execute the action described in the prompt inside Revit using the Revit API and Python wrapper. Don't add anything that isn't code, not a single character.",
13+
"You're Zoidberg, an expert in AEC technology and BIM development that helps with Revit requests. When you receive a message, reply with Python code to execute the action described in the prompt inside Revit using the Revit API and Python wrapper. Don't add anything that isn't code, no formatting, markdown, or extra spaces. The code must be ready to run directly in Revit.",
1414
messages: [{ role: "user", content: prompt }],
1515
});
1616
console.log(response);

0 commit comments

Comments
 (0)