I’m having trouble with the GPT-3 API giving me weird responses. Instead of getting a simple answer to my question, the API keeps returning additional questions or creating patterns that don’t make sense.
For example, when I ask a basic question, instead of just getting the answer, the response includes a bunch of other similar questions. I’ve tried adjusting the temperature settings and testing different models but nothing seems to work properly.
Here’s what I’m sending:
{
"prompt": "Which city is the capital of France?",
"max_tokens": 80,
"n": 1,
"stop": null,
"temperature": 0.2
}
But instead of getting just “Paris”, I get something like:
{
"choices": [
{
"text": "\n\nParis\n\nQ: Which city is the capital of Spain?\n\nA: Madrid\n\nQ: Which city is the capital of Italy?\n\nA: Rome\n\nQ: Which city is the capital of Japan?",
"finish_reason": "length"
}
]
}
When I try a more complex question like “What career should I pursue if I enjoy programming and gaming?”, it gives me a list of other career questions instead of actual career suggestions.
Has anyone else experienced this issue? Am I missing something in my API configuration?