Skip to content

chore: prep for v0.8.4 release #27

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 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ error.
```python
from gptscript.gptscript import GPTScript
from gptscript.frame import RunFrame, CallFrame, PromptFrame
from gptscript.run import Run, RunEventType
from gptscript.run import Run
from gptscript.opts import Options
from gptscript.prompt import PromptResponse

gptscript = GPTScript()
Expand All @@ -295,7 +296,7 @@ async def prompt(run: Run, event: RunFrame | CallFrame | PromptFrame):


async def evaluate_example():
run = gptscript.run("/path/to/file", event_handlers=[prompt])
run = gptscript.run("/path/to/file", opts=Options(prompt=True), event_handlers=[prompt])
output = await run.text()

print(output)
Expand Down
18 changes: 18 additions & 0 deletions examples/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import asyncio

from gptscript.gptscript import GPTScript
from gptscript.text import Text
from gptscript.tool import Tool


async def main():
g = GPTScript()
nodes = [
Text(fmt="nodeGraph", text='{"main":{"x":-692.5543409432609,"y":-114.63783459299711}}'),
Tool(chat=True, tools=["sys.prompt"], context=["github.com/gptscript-ai/context/workspace"],
instructions="Ask the user for their 'first name'. Then reply hello to the user."),
]
print(await g.fmt(nodes))


asyncio.run(main())
2 changes: 1 addition & 1 deletion gptscript/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
gptscript_info = {
"name": "gptscript",
"url": "https://github.com/gptscript-ai/gptscript/releases/download/",
"version": "v0.8.3",
"version": "v0.8.4",
}

pltfm = {"windows": "windows", "linux": "linux", "darwin": "macOS"}.get(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "gptscript"
version = "0.8.3"
version = "0.8.4"
description = "Run gptscripts from Python apps"
readme = "README.md"
authors = [{ name = "Bill Maxwell", email = "[email protected]" }]
Expand Down
2 changes: 1 addition & 1 deletion scripts/package
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ from tempfile import TemporaryDirectory
gptscript_info = {
"name": "gptscript",
"url": "https://github.com/gptscript-ai/gptscript/releases/download/",
"version": "v0.7.1",
"version": "v0.8.4",
}

# Define platform-specific variables
Expand Down
Loading