Hi all, I am using opencodes big-pickle model (free inference), and I have been failing to get paper-qa to work with this backend. Here is my code example (the api-key is fake, just put it in as a placeholder)
from paperqa import Settings, ask
from paperqa.settings import AgentSettings
opencode_config = {
"model_list": [
{
"model_name": "big-pickle",
"litellm_params": {
"model": "openai/big-pickle",
"api_base": "https://opencode.ai/zen/v1",
"api_key": "sk-FAKEAPIKEY",
"temperature": 0.0,
},
}
]
}
answer_response = ask(
"What is PaperQA2?",
settings=Settings(
llm="big-pickle",
llm_config=opencode_config,
summary_llm="big-pickle",
summary_llm_config=opencode_config,
agent=AgentSettings(
agent_type="fake", # Use fake agent instead (no tool_choice needed)
agent_llm="big-pickle",
agent_llm_config=opencode_config,
),
paper_directory="my_papers",
),
)
# Use correct attribute name
print(answer_response.session.answer)
Hi all, I am using opencodes big-pickle model (free inference), and I have been failing to get paper-qa to work with this backend. Here is my code example (the api-key is fake, just put it in as a placeholder)