Git Product home page Git Product logo

Comments (3)

cosmic-snow avatar cosmic-snow commented on September 24, 2024

The 'perl' might just be part of the Markdown. GitHub supports that, too, so let me demonstrate:

```perl
print "Hello World\n";
```

is displayed as:

print "Hello World\n";

Note the colours, that's basically all it does.

So maybe the output of the model is triple backticks followed by 'perl' and the box doesn't know how to format that. The problem here is of course that it should be 'posh' or 'powershell' or something. So basically, I think the model is misbehaving.

Can you start fresh and regenerate the response a few times? Does it always happen?


Edit: Looks like neither PowerShell nor Perl have syntax highlighters yet. See here:

enum Language {
None,
Python,
Cpp,
Bash,
TypeScript,
Java,
Go,
Json,
Csharp,
Latex,
Html,
Php
};

from gpt4all.

trevorstr avatar trevorstr commented on September 24, 2024

Yeah I'm familiar with the syntax highlighting capability in GitHub, and similar platforms. I kinda figured the issue might be related to that. 😆

I re-opened the app and tried a couple more examples.

Screenshot 2024-04-02 at 4 24 45 PM Screenshot 2024-04-02 at 4 25 06 PM

At least this time, the language is correct, but it's still not rendering it properly.

The same problem exists with Rust code blocks, too.

Screenshot 2024-04-02 at 4 27 33 PM

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 24, 2024

Right. So the problem you've brought up first (mismatch) was just the model giving bad responses.

As you can see in the edit I made, and if you follow the link to responsetext.cpp, there aren't any syntax highlighters for these three languages yet.

Maybe you want to turn this issue in a feature request for PowerShell, Rust and possibly Perl?

from gpt4all.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.