This repository was archived by the owner on Jul 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
bug: The "stop word" feature is not working #2016
Copy link
Copy link
Open
Description
Cortex version
1.0.10
Describe the issue and expected behaviour
When user input the stop word in the Inference setting, it does not stop the response when the stop word displays
Steps to Reproduce
- Open Jan
- Select any model
- Open Inference Setting > input Stop word > add
to - Chat with question
How to do something?
Issue:
- The response show
toin the answer but it did not stop the response whentois displayed
Screenshots / Logs
{
"messages": [
{
"role": "system",
"content": "give short answer in 1 sentence"
},
{
"role": "user",
"content": "how to write a poem"
}
],
"model": "llama3.2-1b-instruct",
"stream": true,
"engine": "llama-cpp",
"frequency_penalty": 0,
"max_tokens": 8192,
"presence_penalty": 0,
"stop": [
"<|end_of_text|>",
"<|eot_id|>",
"<|eom_id|>",
"to"
],
"temperature": 0.7,
"top_p": 0.95
}
for http://127.0.0.1:39291/v1/chat/completions
{
"created_at": 1740363450,
"id": "01JMTVXJ3YH3GVPH4C3C2S851B",
"metadata": {
"title": "Writing a Poem Crafting Verse with Skill and Creative Expression",
"updated_at": 1740363909437,
"lastMessage": "To write a poem, start by brainstorming ideas and themes, then use sensory language, metaphors, similes, and other literary devices to create vivid imagery and expression."
},
"object": "thread",
"updated": 1740363906.744,
"title": "Writing a Poem Crafting Verse with Skill and Creative Expression"
}
for http://127.0.0.1:39291/v1/threads/01JMTVXJ3YH3GVPH4C3C2S851B
Request Method:
PATCH
Status Code:
200 OK
What is your OS?
- Windows
- Mac Silicon
- Mac Intel
- Linux / Ubuntu
What engine are you running?
- cortex.llamacpp (default)
- cortex.tensorrt-llm (Nvidia GPUs)
- cortex.onnx (NPUs, DirectML)
Hardware Specs eg OS version, GPU
M2
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working
Type
Projects
Status
Eng Planning
