Skip to content

新增每条消息额外的Tokens(同 OpenAI 官方算法) #124

新增每条消息额外的Tokens(同 OpenAI 官方算法)

新增每条消息额外的Tokens(同 OpenAI 官方算法) #124

Workflow file for this run

name: Web test
on:
push:
pull_request:
jobs:
eslint:
if: github.repository == 'imiphp/imi-ai'
runs-on: ubuntu-20.04
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node
restore-keys: ${{ runner.os }}-node
- name: Install
run: npm i
- name: Lint
run: npm run lint
vue-tsc:
if: github.repository == 'imiphp/imi-ai'
runs-on: ubuntu-20.04
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node
restore-keys: ${{ runner.os }}-node
- name: Install
run: npm i
- name: Typecheck
run: npm run type-check