mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-23 12:26:03 +03:00
fix(prompt): fixed issue with wrong api key
This commit is contained in:
parent
fed4bfc713
commit
882a10c459
@ -4,10 +4,12 @@ from modules.prompt.repository.prompts_interface import (
|
||||
DeletePromptResponse,
|
||||
PromptsInterface,
|
||||
)
|
||||
from models.settings import get_supabase_client
|
||||
|
||||
|
||||
class Prompts(PromptsInterface):
|
||||
def __init__(self, supabase_client):
|
||||
def __init__(self):
|
||||
supabase_client = get_supabase_client()
|
||||
self.db = supabase_client
|
||||
|
||||
def create_prompt(self, prompt):
|
||||
|
@ -16,7 +16,7 @@ class PromptService:
|
||||
|
||||
def __init__(self):
|
||||
supabase_client = get_supabase_client()
|
||||
self.repository = Prompts(supabase_client)
|
||||
self.repository = Prompts()
|
||||
|
||||
def create_prompt(self, prompt: CreatePromptProperties) -> Prompt:
|
||||
return self.repository.create_prompt(prompt)
|
||||
|
Loading…
Reference in New Issue
Block a user