Comments (1)
Implemented. To set different system and user inputs, you can customize the JSON schema using the {basePrompt}
, {prompt}
, and {input}
placeholders. {basePrompt}
will be replaced with the value of the prompt field for a command, with placeholder substitutions applied. {input}
will be replaced with the text or file content input supplied to the command. {prompt}
is now the default placeholder for the full prompt + input.
To customize the OpenAI API with system and roles roles, you can configure PromptLab as follows:
Preference Name | Value |
---|---|
Model Endpoint | https://api.openai.com/v1/chat/completions |
API Authorization Type | Bearer Token |
API Key | Your API key |
Input Schema | { “model”: “gpt-4”, “messages”: [{“role”: “system”, “content”: “{basePrompt}”}, {“role”: “user”, “content”: “{input}”}], “stream”: true } |
Output Key Path | choices[0].delta.content |
Output Timing | Asynchronous |
from raycast-promptlab.
Related Issues (20)
- Is there any way to make the main action be pasting the response to the active app? HOT 2
- Change language HOT 3
- Error: No executable JS file found HOT 3
- Does It Support Chunking? HOT 2
- JSON parsing errors HOT 1
- Update conversation window UI
- Issue retrieving calendar events HOT 4
- Azure OpenAI HOT 2
- Get no response with OpenAI HOT 1
- Switch browser or mail app HOT 5
- Models are not saved in the commands
- Spoken responses not working when enabled
- How to use {{input}}, {{clipboardText}}, and {{selectedText}} at the same time???
- “Bad Request” on OpenAI
- Model is not supported - Failed to fetch data HOT 1
- Inclusion of placeholders causes prompts to load indefinitely HOT 11
- Using Mistral through Jan.ai with this extension HOT 1
- OpenAI endpoint issues with prompts HOT 4
- Error when opening "My PromptLab Commands" HOT 10
- It would be great if you have some videos the outcome of it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raycast-promptlab.