Skip to content

Commit

Permalink
Merge pull request #62 from Portkey-AI/update/renamePromptToPrompts
Browse files Browse the repository at this point in the history
Rename prompt to prompts.
  • Loading branch information
ayush-portkey authored Jan 2, 2024
2 parents 22192ff + 1b7cbbb commit 5006916
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
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"

0 comments on commit 5006916

Please sign in to comment.