You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: API Error: https://xxxxx..ngrok-free.app/api/chat/completions, SyntaxError: Unexpected non-whitespace character after JSON at position 4
Request Body: {
"model": "llama3.2",
"messages": [
{
"role": "system",
"content": "Given the fields Text To Summarize, produce the fields Reason, Short Summary."
},
{
"role": "user",
"content": "Use the following key-value output format for the output not JSON or a markdown block.\n\nReason: Let's work this out in a step by step way in order to ensure we have the right answer.\n\nShort Summary: summarize in 5 to 10 words\n\n---\n\n\nText To Summarize: \n The technological singularity—or simply the singularity[1]—is a hypothetical\n future point in time at which technological growth becomes uncontrollable\n and irreversible, resulting in unforeseeable changes to human\n civilization.[2][3] ...\n\n"
}
],
"max_tokens": 2000,
"temperature": 0,
"top_p": 1,
"frequency_penalty": 0.2
}
The text was updated successfully, but these errors were encountered:
I'm running into the same issue. The problem is that ax makes a call to /api/chat/completions which does not exist on ollama api. At least not on the most recent version of ollama (0.5.4). The Ollama docs show that the actual path for chat is /api/chat. However, there is a 'compatibility endpoint' at /v1/chat/completions shown here
I am accessing ollama running on a different machine via ngork. I am having the following error.
API https://xxxxx..ngrok-free.app/api/chat/completions is resulting in 404 error.
Error: API Error: https://xxxxx..ngrok-free.app/api/chat/completions, SyntaxError: Unexpected non-whitespace character after JSON at position 4
Request Body: {
"model": "llama3.2",
"messages": [
{
"role": "system",
"content": "Given the fields
Text To Summarize
, produce the fieldsReason
,Short Summary
."},
{
"role": "user",
"content": "Use the following key-value output format for the output not JSON or a markdown block.\n\nReason: Let's work this out in a step by step way in order to ensure we have the right answer.\n\nShort Summary: summarize in 5 to 10 words\n\n---\n\n\nText To Summarize: \n The technological singularity—or simply the singularity[1]—is a hypothetical\n future point in time at which technological growth becomes uncontrollable\n and irreversible, resulting in unforeseeable changes to human\n civilization.[2][3] ...\n\n"
}
],
"max_tokens": 2000,
"temperature": 0,
"top_p": 1,
"frequency_penalty": 0.2
}
The text was updated successfully, but these errors were encountered: