Skip to content

chore: add with * syntax to context tools #825

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

Merged
merged 3 commits into from
Aug 27, 2024

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