update
Browse filesmodel 変更
app.py
CHANGED
|
@@ -11,7 +11,7 @@ if not api_key:
|
|
| 11 |
|
| 12 |
client = AsyncOpenAI(api_key=api_key)
|
| 13 |
|
| 14 |
-
async def generate_content(prompt, model="gpt-
|
| 15 |
try:
|
| 16 |
response = await client.chat.completions.create(
|
| 17 |
model=model,
|
|
|
|
| 11 |
|
| 12 |
client = AsyncOpenAI(api_key=api_key)
|
| 13 |
|
| 14 |
+
async def generate_content(prompt, model="gpt-4o", max_tokens=2048):
|
| 15 |
try:
|
| 16 |
response = await client.chat.completions.create(
|
| 17 |
model=model,
|