Skip to content

Commit

Permalink
v3.4.1 interactive + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patapizza committed Apr 27, 2016
1 parent 919b604 commit 27acea9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v3.4.1

- `interactive()` mode
- fixed default arg for `context`
- fixed `say` action in `examples/quickstart.py`
- examples to take the Wit access token in argument

## v3.4.0

Unifying action parameters
Expand Down
6 changes: 5 additions & 1 deletion examples/joke.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from random import shuffle
import sys
from wit import Wit

# Joke example
# See https://wit.ai/patapizza/example-joke

access_token = 'YOUR_ACCESS_TOKEN'
if len(sys.argv) != 2:
print("usage: python examples/joke.py <wit-token>")
exit(1)
access_token = sys.argv[1]

def first_entity_value(entities, entity):
if entity not in entities:
Expand Down
6 changes: 3 additions & 3 deletions examples/quickstart.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from wit import Wit
import sys
from wit import Wit

# Quickstart example
# See https://wit.ai/l5t/Quickstart

if len(sys.argv) != 2:
print("usage: python examples/quickstart.py <wit-token>")
exit(1)
print("usage: python examples/quickstart.py <wit-token>")
exit(1)
access_token = sys.argv[1]

def first_entity_value(entities, entity):
Expand Down
6 changes: 5 additions & 1 deletion examples/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import sys
from wit import Wit

access_token = 'YOUR_ACCESS_TOKEN'
if len(sys.argv) != 2:
print("usage: python examples/template.py <wit-token>")
exit(1)
access_token = sys.argv[1]

def say(session_id, context, msg):
print(msg)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

setup(
name='wit',
version='3.4.0',
version='3.4.1',
description='Wit SDK for Python',
author='The Wit Team',
author_email='[email protected]',
Expand Down

0 comments on commit 27acea9

Please sign in to comment.