Skip to content

Commit

Permalink
use older cmake version in linux and bump gpt to 4 turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-couchbase committed Apr 15, 2024
1 parent 42ca30b commit 8a15223
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-latest
platform: win32
arch: x64
# - os: windows-latest
# platform: win32
# arch: x64
#- os: windows-latest
# platform: win32
# arch: ia32
Expand All @@ -33,12 +33,12 @@ jobs:
# - os: ubuntu-latest
# platform: alpine
# arch: x64
- os: macos-latest
platform: darwin
arch: x64
- os: macos-13-xlarge
platform: darwin
arch: arm64
# - os: macos-latest
# platform: darwin
# arch: x64
# - os: macos-13-xlarge
# platform: darwin
# arch: arm64
runs-on: ${{ matrix.os }}
steps:
- shell: pwsh
Expand All @@ -65,6 +65,17 @@ jobs:
WORKING_DIRECTORY=$(pwd)
echo "${WORKING_DIRECTORY}/cmake-3.27.9-macos-universal/CMake.app/Contents/bin" >> $GITHUB_PATH
echo "PATH=${WORKING_DIRECTORY}/cmake-3.27.9-macos-universal/CMake.app/Contents/bin:$PATH" >> $GITHUB_ENV
- name: linux-specific
shell: bash
if: matrix.platform == 'linux'
run: |
command_path=$(which {{cmake}})
find / -type f -exec sh -c '[[ $(file "{}") == *"$command_path"* ]]' \; -exec rm -rf {} \;
wget https://cmake.org/files/v3.27/cmake-3.27.0-linux-x86_64.sh
tar xf cmake-3.27.0-linux-x86_64.sh
WORKING_DIRECTORY=$(pwd)
echo "${WORKING_DIRECTORY}/cmake-3.27.0-linux-x86_64/CMake.app/Contents/bin" >> $GITHUB_PATH
echo "PATH=${WORKING_DIRECTORY}/cmake-3.27.0-linux-x86_64/CMake.app/Contents/bin:$PATH" >> $GITHUB_ENV
- name: general
run: npm i && npm run rebuild
- run: npx vsce package --target ${{ env.target }}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/iq/chat/iqChatHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const getIntentOrResponse = async (userRequest: string, jwtToken: string, orgId:
}];

const payload = {
model: "gpt-4",
model: "gpt-4-turbo",
messages: messagesPayload
};

Expand Down Expand Up @@ -106,7 +106,7 @@ const getFinalResponse = async (message: string, additionalContext: IAdditionalC
}];

let payload = {
model: "gpt-4",
model: "gpt-4-turbo",
messages: messagesPayload
};

Expand Down

0 comments on commit 8a15223

Please sign in to comment.