mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Compare commits
1 Commits
78c59f4f28
...
5bc5feca78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bc5feca78 |
@ -30,7 +30,6 @@ from .types import (
|
||||
ToolChoice,
|
||||
)
|
||||
from .types.exceptions import get_user_friendly_error_message
|
||||
from .types.models import GeminiGoogleSearch
|
||||
from .utils import create_multimodal_message
|
||||
|
||||
T = TypeVar("T", bound=BaseModel)
|
||||
@ -183,7 +182,7 @@ async def embed_documents(
|
||||
|
||||
|
||||
async def generate_structured(
|
||||
message: str | UniMessage | LLMMessage | list[LLMContentPart],
|
||||
message: str | LLMMessage | list[LLMContentPart],
|
||||
response_model: type[T],
|
||||
*,
|
||||
model: ModelName = None,
|
||||
@ -403,5 +402,4 @@ async def search(
|
||||
model=model,
|
||||
instruction=instruction,
|
||||
config=final_config,
|
||||
tools=[GeminiGoogleSearch()],
|
||||
)
|
||||
|
||||
@ -445,12 +445,11 @@ class AI:
|
||||
instruction=instruction,
|
||||
template_vars=template_vars,
|
||||
config=search_config,
|
||||
tools=[GeminiGoogleSearch()],
|
||||
)
|
||||
|
||||
async def generate_structured(
|
||||
self,
|
||||
message: str | UniMessage | LLMMessage | list[LLMContentPart] | None,
|
||||
message: str | LLMMessage | list[LLMContentPart] | None,
|
||||
response_model: type[T],
|
||||
*,
|
||||
model: ModelName = None,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user