Skip to content

Conversation

ibuildthecloud
Copy link
Contributor

@ibuildthecloud ibuildthecloud commented Aug 27, 2024

Basic example

chat: true
context: foo with *

Say hi

---
name: foo

#!/bin/bash

echo This is the input: ${GPTSCRIPT_INPUT}

Run with gptscript --debug-messages test.gpt and you will see taht the system message for request will have the input in it.

test.gpt> first

10:02:27 messages [request={"model":"gpt-4o","messages":[{"role":"system","content":"This is the input: first\n\nSay hi"},{"role":"assistant","content":"Hi there! How can I assist you today?"},{"role":"user","content":"first"}],"temperature":0}]

test.gpt> second

10:02:29 messages [request={"model":"gpt-4o","messages":[{"role":"system","content":"This is the input: second\n\nSay hi"},{"role":"assistant","content":"Hi there! How can I assist you today?"},{"role":"user","content":"first"},{"role":"assistant","content":"Hello! It seems like you might be referring to something specific. Could you please provide more details or clarify what you mean by \"first\"? I'm here to help!"},{"role":"user","content":"second"}],"temperature":0}]

Basic example

chat: true
context: foo with *

Say hi

---
name: foo

#!/bin/bash

echo This is the input: ${GPTSCRIPT_INPUT}
@ibuildthecloud ibuildthecloud merged commit 5d2505a into gptscript-ai:main Aug 27, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant