Skip to content

Commit

Permalink
use the nightly model
Browse files Browse the repository at this point in the history
  • Loading branch information
asaprahul committed May 10, 2023
1 parent 427f4a6 commit 049b1fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/app/api/utils/sql_gen/text_to_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def text_to_sql_with_retry(natural_language_query, table_names, k=3, messages=No
Tries to take a natural language query and generate valid SQL to answer it K times
"""
if scope == "SF":
model = "gpt-3.5-turbo-0301"
model = "gpt-3.5-turbo"
else:
model = "gpt-3.5-turbo-0301"
model = "gpt-3.5-turbo"

example_messages = []
enums_message = [{'role': 'user', 'content': ''}]
Expand Down
4 changes: 2 additions & 2 deletions api/app/api/utils/table_selection/table_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ def get_relevant_tables(natural_language_query, scope="USA") -> List[str]:
# temporary hack to always use LM for SF
if scope == "SF":
# model = "gpt-4"
model = "gpt-3.5-turbo-0301"
model = "gpt-3.5-turbo"
return get_relevant_tables_from_lm(natural_language_query, scope, model)

if PINECONE_KEY and PINECONE_ENV:
return get_relevant_tables_from_pinecone(natural_language_query, scope=scope)

if scope == "SF":
# model = "gpt-4"
model = "gpt-3.5-turbo-0301"
model = "gpt-3.5-turbo"
else:
model = "gpt-3.5-turbo"

Expand Down

1 comment on commit 049b1fd

@vercel
Copy link

@vercel vercel bot commented on 049b1fd May 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.