You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A picture is worth a thousand words. If I ask GPT-4 to "Write me a Swift program that tells me how many performance cores I have", the output looks like this:
Expected or desired behavior:
It should look like this:
Were there any error messages in the UI, Output panel, or Developer Tools console?
There are no errors.
The text was updated successfully, but these errors were encountered:
fromchatlasimportChatOpenAIimportos# Setup your Open API key in an env varOPENAI_API_KEY=os.getenv("OPENAI_API_KEY")
defchat_with_chatlas(prompt: str):
chatlas_client=ChatOpenAI(api_key=OPENAI_API_KEY, model="gpt-4o-mini")
try:
response=chatlas_client.chat(prompt)
returnresponseexceptExceptionase:
returnf"An error occurred: {e}"prompt="Write me a simple Swift program that shows me how many performance cores I have"response=chat_with_chatlas(prompt)
System details:
Positron and OS details:
Positron Dev Version: 2025.03.0 build 0
Code - OSS Version: 1.96.0
Commit: Unknown
Date: Unknown
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0
Interpreter details:
Python 3.11.9.
Describe the issue:
Steps to reproduce the issue:
A picture is worth a thousand words. If I ask GPT-4 to "Write me a Swift program that tells me how many performance cores I have", the output looks like this:
Expected or desired behavior:
It should look like this:
Were there any error messages in the UI, Output panel, or Developer Tools console?
There are no errors.
The text was updated successfully, but these errors were encountered: