Skip to content

Commit

Permalink
Merge pull request #9 from FranciZhong/model-config
Browse files Browse the repository at this point in the history
fix: pr trigger workflows twice
  • Loading branch information
FranciZhong authored Oct 11, 2024
2 parents e43ed4b + e027ca1 commit 79703bf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/db-migrate.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Prisma DB Migrate
on:
push:
paths:
- prisma/migrations/** # Only run this workflow when migrations are updated
branches:
- deploy-workflow

pull_request:
paths:
- prisma/migrations/** # Only run this workflow when migrations are updated
branches:
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectModelButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const SelectModelButton: React.FC<Props> = ({
<div className="col-span-7 text-single-line">
{`${model.model} (${model.provider})`}
</div>
<div className="col-span-1">
<div className="col-span-1 flex justify-center items-center">
{selectedModel &&
selectedModel.provider === model.provider &&
selectedModel.model === model.model && (
Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AgentPromptZType, LlmMessageZType } from '@/types/llm';
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { AvatarSize } from './constants';
import { AvatarSize, LlmRole } from './constants';

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
Expand All @@ -25,7 +25,7 @@ export const getAvatarSizeStyle = (size: AvatarSize) => {
export const convertPrompt2LlmMessage = (
prompt: AgentPromptZType
): LlmMessageZType => ({
role: 'system',
role: LlmRole.SYSTEM,
content: prompt.content,
});

Expand Down

0 comments on commit 79703bf

Please sign in to comment.