From 88dd3ae3864c192879970f91a0efd186524dac0d Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Sun, 30 Jul 2023 02:15:34 +0100 Subject: [PATCH] chore(internal): make demo example runnable and more portable (#92) --- examples/demo_async.py | 2 +- examples/demo_sync.py | 2 +- examples/streaming.py | 2 +- examples/tokens.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/demo_async.py b/examples/demo_async.py index 718ddd2a..e4ec78d0 100644 --- a/examples/demo_async.py +++ b/examples/demo_async.py @@ -1,4 +1,4 @@ -#!/usr/bin/env poetry run python +#!/usr/bin/env -S poetry run python import asyncio diff --git a/examples/demo_sync.py b/examples/demo_sync.py index a60846e0..0c1c0084 100644 --- a/examples/demo_sync.py +++ b/examples/demo_sync.py @@ -1,4 +1,4 @@ -#!/usr/bin/env poetry run python +#!/usr/bin/env -S poetry run python import anthropic from anthropic import Anthropic diff --git a/examples/streaming.py b/examples/streaming.py index 1d91b531..e94b9a6d 100644 --- a/examples/streaming.py +++ b/examples/streaming.py @@ -1,4 +1,4 @@ -#!/usr/bin/env poetry run python +#!/usr/bin/env -S poetry run python import asyncio diff --git a/examples/tokens.py b/examples/tokens.py index 4f7d515c..d3e1ceec 100644 --- a/examples/tokens.py +++ b/examples/tokens.py @@ -1,4 +1,4 @@ -#!/usr/bin/env poetry run python +#!/usr/bin/env -S poetry run python import asyncio