Skip to content

Commit

Permalink
initiate table2json
Browse files Browse the repository at this point in the history
  • Loading branch information
Cybonto committed Jan 18, 2025
1 parent b3f9029 commit e874249
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 0 deletions.
1 change: 1 addition & 0 deletions streamlit_app/app/pages/Simple_Chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def view_prompt_variable(var_name, var_data):
# Fetch available models
try:
models_response = openai_client.models.list()
#st.write(str(models_response))
# Filter models to only include chat models
allowed_models = ['gpt-4o', 'gpt-4o-mini', 'o1-mini', 'o1-preview', 'o1', 'o3'] # o3 is not available on API yet
model_names = [model.id for model in models_response.data if model.id in allowed_models]
Expand Down
Loading

0 comments on commit e874249

Please sign in to comment.