From 1b7cbbb33fc58d0dd83c653d879c1d73ba18a7df Mon Sep 17 00:00:00 2001 From: ayush-portkey Date: Tue, 2 Jan 2024 18:48:27 +0530 Subject: [PATCH] Rename prompt tp prompts. --- portkey_ai/__init__.py | 4 ++-- portkey_ai/api_resources/__init__.py | 4 ++-- portkey_ai/api_resources/apis/__init__.py | 4 ++-- portkey_ai/api_resources/apis/generation.py | 2 +- portkey_ai/api_resources/client.py | 4 ++-- portkey_ai/version.py | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/portkey_ai/__init__.py b/portkey_ai/__init__.py index 43696d10..dbd9acc0 100644 --- a/portkey_ai/__init__.py +++ b/portkey_ai/__init__.py @@ -20,7 +20,7 @@ TextCompletion, TextCompletionChunk, createHeaders, - Prompt, + Prompts, Portkey, ) from portkey_ai.version import VERSION @@ -60,6 +60,6 @@ "base_url", "PORTKEY_GATEWAY_URL", "createHeaders", - "Prompt", + "Prompts", "Portkey", ] diff --git a/portkey_ai/api_resources/__init__.py b/portkey_ai/api_resources/__init__.py index 76d994e2..1f277ed0 100644 --- a/portkey_ai/api_resources/__init__.py +++ b/portkey_ai/api_resources/__init__.py @@ -3,7 +3,7 @@ Completion, ChatCompletion, Generations, - Prompt, + Prompts, Feedback, createHeaders, ) @@ -50,7 +50,7 @@ "TextCompletion", "TextCompletionChunk", "Generations", - "Prompt", + "Prompts", "Feedback", "createHeaders", "Portkey", diff --git a/portkey_ai/api_resources/apis/__init__.py b/portkey_ai/api_resources/apis/__init__.py index 4de65ec8..fa66a77f 100644 --- a/portkey_ai/api_resources/apis/__init__.py +++ b/portkey_ai/api_resources/apis/__init__.py @@ -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 @@ -11,7 +11,7 @@ "ChatCompletion", "Generations", "Feedback", - "Prompt", + "Prompts", "createHeaders", "Post", "Embeddings", diff --git a/portkey_ai/api_resources/apis/generation.py b/portkey_ai/api_resources/apis/generation.py index f2b61bc9..ac365284 100644 --- a/portkey_ai/api_resources/apis/generation.py +++ b/portkey_ai/api_resources/apis/generation.py @@ -44,7 +44,7 @@ def create( return response -class Prompt(APIResource): +class Prompts(APIResource): completions: Completions def __init__(self, client: APIClient) -> None: diff --git a/portkey_ai/api_resources/client.py b/portkey_ai/api_resources/client.py index 7bfd3be7..6d311d92 100644 --- a/portkey_ai/api_resources/client.py +++ b/portkey_ai/api_resources/client.py @@ -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__( @@ -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) diff --git a/portkey_ai/version.py b/portkey_ai/version.py index 3277f64c..50b5ea95 100644 --- a/portkey_ai/version.py +++ b/portkey_ai/version.py @@ -1 +1 @@ -VERSION = "1.0.0" +VERSION = "1.0.1"