allenai / allenai/discoverybench

[DISCOVERY AGENT]: What steps to take exactly so that I can use latest models like GPT 5.2?

Offen
#22 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
agents
Vorherrschende Sprache
Python
Sterne
161
Forks
18
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Description
When I run the current discovery_agent.py code with models like GPT 5.2, I get the following error:
"Execution Stopped due to : Error code: 400 - {'error': {'message': "Unsupported parameter: 'stop' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'stop', 'code': 'unsupported_parameter'}}"

I believe this is because the older version of langchain uses this "stop" parameter which is not used by OpenAI api of GPT 5.2. I manually tried removing this stop parameter from the langchain api initialisations but the error still persists, and if I upgrade to a latest version of Langchain everything crashes as all the imports become invalid because of the new updates.

To reproduce the error follow the steps:

"gpt-5.2":{
"model_type":"openai",
"model_name":"gpt-5.2"
},

add the above in config\model_config.json. And run discovery_agent.py with any agent.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.