Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: create a chat function like completion in upsonic_on_prem/utils/ai/ai.py (✓ Sandbox Passed) #88

Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
80d2fda
feat: Updated upsonic_on_prem/utils/ai/ai.py
onuratakan Mar 13, 2024
66fd6b3
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 13, 2024
e755479
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 13, 2024
7443aea
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 13, 2024
10902aa
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 14, 2024
afe3c89
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 14, 2024
d3d833d
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 14, 2024
cbbf4e2
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 14, 2024
d1f6963
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 15, 2024
cce9c1a
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 16, 2024
d703a6e
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 16, 2024
c09677b
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 16, 2024
8815b18
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 17, 2024
3f89a7a
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 17, 2024
66f03a7
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 17, 2024
00d5284
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 17, 2024
b4f1bd6
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 22, 2024
5da7820
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 22, 2024
a165120
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 23, 2024
addb68c
Merge main into sweep/create_a_chat_function_like_completion_i
onuratakan Mar 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions upsonic_on_prem/utils/ai/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,11 @@ def generate_readme(self, top_library, summary_list):

return result

def chat(self, input_text, model="gpt-3.5-turbo"):
try:
return self.gpt(input_text, model=model)
except Exception as e:
failed(f"Failed to generate chat response: {e}")
return None

AI = AI_()
Loading