mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Synchronize with enterprise version (#4325)
### Type of change - [x] Refactoring
This commit is contained in:
@ -24,7 +24,6 @@ import openai
|
||||
from ollama import Client
|
||||
from rag.nlp import is_chinese, is_english
|
||||
from rag.utils import num_tokens_from_string
|
||||
from groq import Groq
|
||||
import os
|
||||
import json
|
||||
import requests
|
||||
@ -840,6 +839,7 @@ class GeminiChat(Base):
|
||||
|
||||
class GroqChat:
|
||||
def __init__(self, key, model_name, base_url=''):
|
||||
from groq import Groq
|
||||
self.client = Groq(api_key=key)
|
||||
self.model_name = model_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user