-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d92e22
commit ba4348a
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...pt/.cache/joblib/openadapt/strategies/mixins/openai/create_openai_completion/func_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# first line: 76 | ||
@cache.cache() | ||
def create_openai_completion( | ||
model, | ||
messages, | ||
# temperatere=1, | ||
# top_p=1, | ||
# n=1, | ||
# stream=False, | ||
# stop=None, | ||
# max_tokens=inf, | ||
# presence_penalty=0, | ||
# frequency_penalty=0, | ||
# logit_bias=None, | ||
# user=None, | ||
): | ||
return openai.ChatCompletion.create( | ||
model=model, | ||
messages=messages, | ||
# temperatere=temperature, | ||
# top_p=top_p, | ||
# n=n, | ||
# stream=stream, | ||
# stop=stop, | ||
# max_tokens=max_tokens, | ||
# presence_penalty=presence_penalty, | ||
# frequency_penalty=frequency_penalty, | ||
# logit_bias=logit_bias, | ||
# user=user, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from openadapt.strategies.base import BaseReplayStrategy | ||
from openadapt.strategies.naive import NaiveReplayStrategy | ||
from openadapt.strategies.demo import DemoReplayStrategy | ||
from openadapt.strategies.stateful import StatefulReplayStrategy | ||
# add more strategies here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters