Skip to content

Commit e8a0ff8

Browse files
authored
Merge branch 'main' into agb/caching
2 parents 6cdd145 + 4187419 commit e8a0ff8

33 files changed

+2330
-1569
lines changed

guidance/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import requests
88

99
from . import models
10-
from ._grammar import (Placeholder, StatefulFunction, StatelessFunction,
10+
from ._grammar import (Placeholder, RawFunction, GrammarFunction,
1111
Terminal, replace_grammar_node, string)
1212
from ._utils import load, strip_multiline_string_indents
13+
from ._server import Server
1314

1415
curr_module = sys.modules[__name__]
1516

@@ -78,7 +79,7 @@ def wrapped(*args, **kwargs):
7879

7980
# otherwise must be stateful (which means we can't be inside a select() call)
8081
else:
81-
return StatefulFunction(f, args, kwargs)
82+
return RawFunction(f, args, kwargs)
8283

8384
# attach this as a method of the model class (if given)
8485
# if model is not None:

0 commit comments

Comments
 (0)