Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename prompt to prompts. #62

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
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 portkey_ai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TextCompletion,
TextCompletionChunk,
createHeaders,
Prompt,
Prompts,
Portkey,
)
from portkey_ai.version import VERSION
Expand Down Expand Up @@ -60,6 +60,6 @@
"base_url",
"PORTKEY_GATEWAY_URL",
"createHeaders",
"Prompt",
"Prompts",
"Portkey",
]
4 changes: 2 additions & 2 deletions portkey_ai/api_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Completion,
ChatCompletion,
Generations,
Prompt,
Prompts,
Feedback,
createHeaders,
)
Expand Down Expand Up @@ -50,7 +50,7 @@
"TextCompletion",
"TextCompletionChunk",
"Generations",
"Prompt",
"Prompts",
"Feedback",
"createHeaders",
"Portkey",
Expand Down
4 changes: 2 additions & 2 deletions portkey_ai/api_resources/apis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .chat_complete import ChatCompletion
from .complete import Completion
from .generation import Generations, Prompt
from .generation import Generations, Prompts
from .feedback import Feedback
from .create_headers import createHeaders
from .post import Post
Expand All @@ -11,7 +11,7 @@
"ChatCompletion",
"Generations",
"Feedback",
"Prompt",
"Prompts",
"createHeaders",
"Post",
"Embeddings",
Expand Down
2 changes: 1 addition & 1 deletion portkey_ai/api_resources/apis/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create(
return response


class Prompt(APIResource):
class Prompts(APIResource):
completions: Completions

def __init__(self, client: APIClient) -> None:
Expand Down
4 changes: 2 additions & 2 deletions portkey_ai/api_resources/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Portkey(APIClient):
completions: apis.Completion
chat: apis.ChatCompletion
generations: apis.Generations
prompt: apis.Prompt
prompts: apis.Prompts
embeddings: apis.Embeddings

def __init__(
Expand Down Expand Up @@ -38,7 +38,7 @@ def __init__(
self.completions = apis.Completion(self)
self.chat = apis.ChatCompletion(self)
self.generations = apis.Generations(self)
self.prompts = apis.Prompt(self)
self.prompts = apis.Prompts(self)
self.embeddings = apis.Embeddings(self)
self.feedback = apis.Feedback(self)

Expand Down
2 changes: 1 addition & 1 deletion portkey_ai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.0.0"
VERSION = "1.0.1"
Loading