Skip to content

Commit

Permalink
feat: Expand reasoning model regex to include 'thinking' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ousugo authored and kangfenmao committed Feb 17, 2025
1 parent fa8bf61 commit 7764507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/config/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const VISION_REGEX = new RegExp(
)

export const TEXT_TO_IMAGE_REGEX = /flux|diffusion|stabilityai|sd-|dall|cogview|janus/i
export const REASONING_REGEX = /^(o\d+(?:-[\w-]+)?|.*\breasoner\b.*|.*-[rR]\d+.*)$/i
export const REASONING_REGEX = /^(o\d+(?:-[\w-]+)?|.*\b(?:reasoner|thinking)\b.*|.*-[rR]\d+.*)$/i

export const EMBEDDING_REGEX =
/(?:^text-|embed|rerank|davinci|babbage|bge-|e5-|LLM2Vec|retrieval|uae-|gte-|jina-clip|jina-embeddings)/i
Expand Down

0 comments on commit 7764507

Please sign in to comment.