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

support for system in runprompt #378

Closed
bzorn opened this issue Apr 24, 2024 · 4 comments
Closed

support for system in runprompt #378

bzorn opened this issue Apr 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bzorn
Copy link
Collaborator

bzorn commented Apr 24, 2024

I've got this code in my script:

const cleanInfo = await runPrompt(_ => {
    // use def, $ and other helpers
    _.def("INFO", parktext.text)
    _.$`You are an expert in web content. 
    Extract out of the file INFO, which is HTML with lots of CSS and HTML tags, 
    the important information that a human would want to know.`
    },
    { model: "ollama:phi3", system: ["system"]}
)

It looks like adding "system" causes an error in the script but when I omit it, the model used to run the runPrompt isn't ollama:phi3.

@bzorn bzorn added the bug Something isn't working label Apr 24, 2024
@pelikhan
Copy link
Member

runPrompt does not support system scripts yet. There's another issue on this.

@pelikhan
Copy link
Member

Looks like 2 bugs here. System prompts not supported and model info lost.

@pelikhan
Copy link
Member

fix for phi3 selection: 5d80928

@pelikhan pelikhan added the enhancement New feature or request label Apr 25, 2024
@pelikhan pelikhan changed the title Use of ollama in runPrompt fails support for system in runprompt Apr 25, 2024
@pelikhan pelikhan self-assigned this Apr 30, 2024
@pelikhan
Copy link
Member

Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants