Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Expecting value: line 1 column 2 (char 1) #3

Open
guoyouworld opened this issue Sep 23, 2024 · 2 comments
Open

Error: Expecting value: line 1 column 2 (char 1) #3

guoyouworld opened this issue Sep 23, 2024 · 2 comments

Comments

@guoyouworld
Copy link

Current Configuration:

Ollama URL: http://localhost:11434
Ollama Model: llama3.1
Enter your query:

你可以给我写一些祝福老人的句子么?
Generating response...

Step 1: Error

Failed to generate step after 3 attempts. Error: Expecting value: line 1 column 2 (char 1)

Final Answer
Failed to generate final answer after 3 attempts. Error: Expecting value: line 1 column 1 (char 0)

@Dhrhciebcy
Copy link

Dhrhciebcy commented Oct 21, 2024

Idem

Current Configuration:

Ollama URL: http://localhost:11434/
Ollama Model: Lexi_un_Q4

Enter your query:
ciao

Generating response...

Step 1: Error

Failed to generate step after 3 attempts. Error: Expecting value: line 1 column 1 (char 0)

**Final Answer**
Failed to generate final answer after 3 attempts. Error: Expecting value: line 1 column 1 (char 0)

@Dhrhciebcy
Copy link

Ok, it seems that some models do not generate valid json directly, but instead they wrap it in markdown notation, like:

<invalid json here>

```json
{
    <valid json in here>
}```

<invalid json here>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants