Skip to content

Commit

Permalink
enhance gemini models
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry committed Dec 9, 2024
1 parent 93ab6f3 commit f1dce52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/core/model_runtime/model_providers/google/llm/llm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import base64
import os
import json
import os
import tempfile
import time
from collections.abc import Generator
Expand All @@ -10,21 +10,21 @@
import google.generativeai as genai
import requests
from google.api_core import exceptions
from google.generativeai.types import ContentType, GenerateContentResponse, File
from google.generativeai.types import ContentType, File, GenerateContentResponse
from google.generativeai.types.content_types import to_part

from core.model_runtime.entities.llm_entities import LLMResult, LLMResultChunk, LLMResultChunkDelta
from core.model_runtime.entities.message_entities import (
AssistantPromptMessage,
DocumentPromptMessageContent,
ImagePromptMessageContent,
VideoPromptMessageContent,
PromptMessage,
PromptMessageContentType,
PromptMessageTool,
SystemPromptMessage,
ToolPromptMessage,
UserPromptMessage,
VideoPromptMessageContent,
)
from core.model_runtime.errors.invoke import (
InvokeAuthorizationError,
Expand Down

0 comments on commit f1dce52

Please sign in to comment.