purnama
05/12/2024, 7:48 PM[FAIL] TypeError: prompt.trim is not a function.
here's my YAML
description: "My first eval"
prompts:
- "langfuse://test-chat-prompt:2"
providers:
- openai:gpt-3.5-turbo-0613
- openai:gpt-4
tests:
- vars:
question: "Albert is a startup founder who is a member of YCombinator"purnama
05/12/2024, 7:49 PMpurnama
05/12/2024, 7:57 PMian
05/12/2024, 8:03 PMpurnama
05/12/2024, 8:04 PMpurnama
05/12/2024, 8:06 PMgetPrompt we output getLangchainPrompt() which for the chat type, it returns ChatMessage[] which doesn't have .trim methodpurnama
05/12/2024, 8:08 PMJSON.stringify the ChatMessage[] it'd work?purnama
05/12/2024, 8:08 PMstringpurnama
05/12/2024, 8:25 PMian
05/12/2024, 8:29 PMian
05/12/2024, 8:30 PMpurnama
05/13/2024, 5:10 PMian
05/13/2024, 10:36 PMpurnama
05/14/2024, 2:36 AMian
05/14/2024, 4:57 AMpurnama
05/14/2024, 10:12 PMexamples/ doc.mrwildler
05/15/2024, 2:10 AMian
05/15/2024, 5:39 AM