@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
171 lines (151 loc) โข 5.9 kB
YAML
description: Test emoji selection for different conversation topics and contexts
providers:
- openai:chat:gpt-5-mini
- openai:chat:claude-3-5-haiku-latest
- openai:chat:gemini-flash-latest
- openai:chat:deepseek-chat
prompts:
- file://promptfoo/emoji-picker/prompt.ts
tests:
- vars:
content: "I just got a promotion at work! I'm so excited!"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select a positive, celebratory emoji appropriate for work success (e.g., ๐, ๐, โญ, ๐ผ, ๐)"
- type: not-contains
value: "explanation"
- vars:
content: "My dog passed away yesterday. I'm really sad."
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select a sympathetic, sad emoji appropriate for loss and grief (e.g., ๐ข, ๐ญ, ๐, ๐)"
- type: not-contains
value: "explanation"
- vars:
content: "Can you help me with this math problem?"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to learning, thinking, or mathematics (e.g., ๐ค, ๐, โ๏ธ, ๐งฎ, ๐ข)"
- type: not-contains
value: "explanation"
- vars:
content: "I'm going on vacation to Hawaii next week!"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to vacation, travel, or tropical themes (e.g., ๐บ, ๐๏ธ, โ๏ธ, ๐ด, โ๏ธ)"
- type: not-contains
value: "explanation"
- vars:
content: "I'm learning to cook Italian food"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to cooking or Italian food (e.g., ๐, ๐, ๐จโ๐ณ, ๐ฝ๏ธ)"
- type: not-contains
value: "explanation"
- vars:
content: "Technical documentation about API endpoints"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to technology, development, or documentation (e.g., ๐ป, ๐, โ๏ธ, ๐ง, ๐)"
- type: not-contains
value: "explanation"
# Chinese language tests
- vars:
content: "ๆๅๅๅ่ไบ๏ผๅคชๆฟๅจไบ๏ผ"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select a positive, celebratory emoji appropriate for work success (e.g., ๐, ๐, โญ, ๐ผ, ๐)"
- type: not-contains
value: "explanation"
- vars:
content: "ๆ็็ซๅชๆจๅคฉๅปไธไบ๏ผๆๅพ้พ่ฟ"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select a sympathetic, sad emoji appropriate for loss and grief (e.g., ๐ข, ๐ญ, ๐, ๐)"
- type: not-contains
value: "explanation"
- vars:
content: "ๆๆญฃๅจๅญฆไน ๅๆฅๆฌๆ็"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to cooking or Japanese food (e.g., ๐ฑ, ๐ฃ, ๐, ๐จโ๐ณ)"
- type: not-contains
value: "explanation"
# Spanish language tests
- vars:
content: "ยกMe voy de vacaciones a la playa la prรณxima semana!"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to vacation, beach, or tropical themes (e.g., ๐๏ธ, โ๏ธ, ๐, ๐๏ธ)"
- type: not-contains
value: "explanation"
- vars:
content: "Estoy estudiando para mi examen de matemรกticas"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to studying, learning, or mathematics (e.g., ๐, ๐ค, ๐งฎ, โ๏ธ, ๐, ๐, ๐)"
- type: not-contains
value: "explanation"
# French language tests
- vars:
content: "Je viens de terminer mon marathon! Je suis รฉpuisรฉ mais heureux"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to running, sports, or achievement (e.g., ๐, ๐
, ๐ช, ๐ฏ)"
- type: not-contains
value: "explanation"
- vars:
content: "J'apprends ร jouer de la guitare"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to music or guitar (e.g., ๐ธ, ๐ต, ๐ถ, ๐ผ)"
- type: not-contains
value: "explanation"
# Japanese language tests
- vars:
content: "ๆฐใใใใญใธใงใฏใใๅงใพใใพใใ๏ผ้ ๅผตใใพใ"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to new beginning, work, or motivation (e.g., ๐, ๐ผ, ๐ช, โจ)"
- type: not-contains
value: "explanation"
- vars:
content: "ๆกใๅฒใใฆๆฌๅฝใซ็ถบ้บใงใ"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to cherry blossoms, flowers, or beauty (e.g., ๐ธ, ๐บ, ๐ผ, ๐ท)"
- type: not-contains
value: "explanation"
# German language tests
- vars:
content: "Ich habe gerade ein neues Auto gekauft!"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to cars or excitement (e.g., ๐, ๐, ๐)"
- type: not-contains
value: "explanation"
# Russian language tests
- vars:
content: "ะฏ ะปัะฑะปั ัะธัะฐัั ะบะฝะธะณะธ ะฟะพ ะฒะตัะตัะฐะผ"
assert:
- type: llm-rubric
provider: openai:gpt-5-mini
value: "Should select an emoji related to reading or books (e.g., ๐, ๐, ๐, ๐ค)"
- type: not-contains
value: "explanation"