Hi, I am having issues trying to use the sdk with ...
# questions
f
Hi, I am having issues trying to use the sdk with the subscription login
Copy code
LLM.subscription_login(vendor="openai", model="gpt-5.2-codex")
I'm getting a response that says [no text content], any ideas what is wrong here?
m
Hey @flat-evening-62195 Thanks for the message. Could you share a minimal scrip to reproduce the issue?
Or the trajectory of the conversation if it is not private…
f
Hey @modern-fireman-99755, thanks for responding. I used the below script from https://docs.openhands.dev/sdk/getting-started to replicate the issue, replacing the original LLM with the one from subscription_login:
Copy code
import os

from openhands.sdk import LLM, Agent, Conversation, Tool
from openhands.tools.file_editor import FileEditorTool
from openhands.tools.task_tracker import TaskTrackerTool
from openhands.tools.terminal import TerminalTool


llm = LLM.subscription_login(vendor="openai", model="gpt-5.2-codex")

agent = Agent(
    llm=llm,
    tools=[
        Tool(name=TerminalTool.name),
        Tool(name=FileEditorTool.name),
        Tool(name=TaskTrackerTool.name),
    ],
)

cwd = os.getcwd()
conversation = Conversation(agent=agent, workspace=cwd)

conversation.send_message("Write 3 facts about the current project into FACTS.txt.")
conversation.run()
print("All done!")
šŸ‘€ 1
m
@flat-evening-62195 I believe I know what is the problem: https://github.com/OpenHands/software-agent-sdk/issues/2797 I'm working on a fix.
f
thank you!
m