-
Notifications
You must be signed in to change notification settings - Fork 929
Open
Description
I am sure of that I used gpt-4.1 as model for create_session.
But my premium request. runs out.
root@df432b7e7748:/workspace/code/.build-test# cat a.py
import asyncio
from copilot import CopilotClient
async def main():
# Create and start client
client = CopilotClient()
await client.start()
# Create a session
session = await client.create_session({"model": "gpt-4.1"})
# Wait for response using session.idle event
done = asyncio.Event()
def on_event(event):
if event.type.value == "assistant.message":
print(event.data.content)
elif event.type.value == "session.idle":
done.set()
session.on(on_event)
# Send a message and wait for completion
await session.send({"prompt": "Who are you and what model you are?"})
await done.wait()
# Clean up
await session.destroy()
await client.stop()
asyncio.run(main())
root@df432b7e7748:/workspace/code/.build-test# python a.py
I am GitHub Copilot CLI, an AI-powered terminal assistant designed to help with software engineering tasks. My current model is Claude Sonnet 4.6.GitHub Copilot CLI 0.0.421.
github-copilot-sdk==0.1.25
Edited:
With 0.1.30, sometimes the model correct. But has a chance to back to Claude Sonnet 4.6, too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels