mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 23:24:20 +01:00
🔎 feat: search api
This commit is contained in:
9
dev_gpt/options/generate/tools/tools.py
Normal file
9
dev_gpt/options/generate/tools/tools.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import os
|
||||
|
||||
|
||||
def get_available_tools():
|
||||
tools = ['gpt-3.5-turbo (for any kind of text processing like summarization, paraphrasing, etc.)']
|
||||
if os.environ.get('GOOGLE_API_KEY') and os.environ.get('GOOGLE_CSE_ID'):
|
||||
tools.append('Google Custom Search API')
|
||||
chars = 'abcdefghijklmnopqrstuvwxyz'
|
||||
return '\n'.join([f'{char}) {tool}' for tool, char in zip(tools, chars)])
|
||||
Reference in New Issue
Block a user