Spaces:
Sleeping
Sleeping
Update writer_agent.py
Browse files- writer_agent.py +6 -0
writer_agent.py
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from agents import Agent, AsyncOpenAI, OpenAIChatCompletionsModel
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
INSTRUCTIONS = (
|
| 6 |
"You are a senior researcher tasked with writing a cohesive report for a research query. "
|
|
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from agents import Agent, AsyncOpenAI, OpenAIChatCompletionsModel
|
| 3 |
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
gemini_client = AsyncOpenAI(base_url="https://generativelanguage.googleapis.com/v1beta/openai/", api_key=os.getenv('GOOGLE_API_KEY'))
|
| 7 |
+
|
| 8 |
+
gemini_model = OpenAIChatCompletionsModel(model="gemini-2.0-flash", openai_client=gemini_client)
|
| 9 |
+
|
| 10 |
|
| 11 |
INSTRUCTIONS = (
|
| 12 |
"You are a senior researcher tasked with writing a cohesive report for a research query. "
|