Skip to content

Commit

Permalink
fix(chat): no longer show embeddings in ai model select
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Dec 26, 2024
1 parent e5a7d73 commit 7d80c7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ export class AIModelsEsSearchRepo {
ids,
organizationIds,
archived,
embedding,
}: SdKSearchAIModelsInputT,
): esb.Query =>
esb.boolQuery().must(
rejectFalsyItems([
!!ids?.length && esb.termsQuery('id', ids),
!!organizationIds?.length && esb.termsQuery('organization.id', organizationIds),
!isNil(isDefault) && esb.termQuery('default', isDefault),
!isNil(embedding) && esb.termQuery('embedding', embedding),
!!phrase && (
esb
.boolQuery()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const AIModelsSearchAbstractSelect = createSdkAutocomplete<
fetchFn: ({ sdk: { sdks }, phrase, limit, filters }) =>
sdks.dashboard.aiModels.search({
archived: false,
embedding: false,
sort: 'score:desc',
offset: 0,
limit,
Expand Down
4 changes: 2 additions & 2 deletions apps/chat/src/modules/chats/start-chat/start-chat-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function StartChatForm({ forceProject, className }: Props) {
>
<div
className={clsx(
'relative z-10 bg-background shadow-sm border border-border rounded-lg overflow-hidden',
'relative z-10 bg-background shadow-sm border border-border rounded-lg',
'focus-within:border-primary/50',
'transition-border duration-100',
)}
Expand All @@ -70,7 +70,7 @@ export function StartChatForm({ forceProject, className }: Props) {
<textarea
ref={focusInputRef}
name="message"
className="p-4 pb-0 w-full focus:outline-none resize-none"
className="p-4 pb-0 rounded-lg w-full focus:outline-none resize-none"
placeholder={t.placeholder}
required
{...bind.path('content')}
Expand Down

0 comments on commit 7d80c7f

Please sign in to comment.