Skip to content
Open
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
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import time
import json
from typing import Optional, Sequence, Union
from typing import Optional, Sequence, Union, Dict

import openai
import tqdm
Expand Down Expand Up @@ -37,7 +37,7 @@ class OpenAIDecodingArguments(object):


def openai_completion(
prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]],
prompts: Union[str, Sequence[str], Sequence[Dict[str, str]], Dict[str, str]],
decoding_args: OpenAIDecodingArguments,
model_name="text-davinci-003",
sleep_time=2,
Expand Down