Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLM responses for programming questions are displayed with banding in the console #6445

Open
softwarenerd opened this issue Feb 22, 2025 · 1 comment
Assignees
Labels
area: console Issues related to Console category. bug Something isn't working

Comments

@softwarenerd
Copy link
Contributor

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:

Image

Expected or desired behavior:

It should look like this:

Image

Were there any error messages in the UI, Output panel, or Developer Tools console?

There are no errors.

@petetronic
Copy link
Collaborator

Confirmed with this simple example:

from chatlas import ChatOpenAI
import os

# Setup your Open API key in an env var
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")

def chat_with_chatlas(prompt: str):
    chatlas_client = ChatOpenAI(api_key=OPENAI_API_KEY, model="gpt-4o-mini")
    try:
        response = chatlas_client.chat(prompt)
        return response
    except Exception as e:
        return f"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)

@petetronic petetronic added bug Something isn't working area: console Issues related to Console category. labels Feb 22, 2025
@petetronic petetronic added this to the 2025.03.0 Pre-Release milestone Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: console Issues related to Console category. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants