Spaces:
Sleeping
Sleeping
Merge branch 'pr/10' into pr/11
Browse files- Ars/objects.py +1 -1
- controller/imports.py +1 -1
Ars/objects.py
CHANGED
|
@@ -41,7 +41,7 @@ class AIWrapper:
|
|
| 41 |
elif self.provider == 'gemini':
|
| 42 |
return self._gemini_chat(prompt,output_schema=output_schema)
|
| 43 |
|
| 44 |
-
def _openai_chat(self, prompt: str) -> str:
|
| 45 |
response = openai.ChatCompletion.create(
|
| 46 |
model="gpt-4",
|
| 47 |
messages=[
|
|
|
|
| 41 |
elif self.provider == 'gemini':
|
| 42 |
return self._gemini_chat(prompt,output_schema=output_schema)
|
| 43 |
|
| 44 |
+
def _openai_chat(self, prompt: str,output_schema: Type[T]) -> str:
|
| 45 |
response = openai.ChatCompletion.create(
|
| 46 |
model="gpt-4",
|
| 47 |
messages=[
|
controller/imports.py
CHANGED
|
@@ -12,7 +12,7 @@ import fitz
|
|
| 12 |
from gamification.routes import gamification
|
| 13 |
from controller.scraper import scrapeCourse
|
| 14 |
import asyncio
|
| 15 |
-
from google import genai
|
| 16 |
from typing import Optional,List
|
| 17 |
from pydantic import BaseModel
|
| 18 |
import re
|
|
|
|
| 12 |
from gamification.routes import gamification
|
| 13 |
from controller.scraper import scrapeCourse
|
| 14 |
import asyncio
|
| 15 |
+
from google.generativeai import genai
|
| 16 |
from typing import Optional,List
|
| 17 |
from pydantic import BaseModel
|
| 18 |
import re
|