milwright commited on
Commit
2a3717e
·
verified ·
1 Parent(s): 24448c1

Upload 4 files

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +3 -2
  3. config.json +1 -1
README.md CHANGED
@@ -42,7 +42,7 @@ Python support for cultural analytics students
42
  Your Space should now be running! Try the example prompts or ask your own questions.
43
 
44
  ## Configuration
45
- - **Model**: openai/gpt-oss-120b
46
  - **API Key Variable**: API_KEY
47
  - **HF Token Variable**: HF_TOKEN (for auto-updates)
48
  - **Access Control**: Enabled (ACCESS_CODE)
 
42
  Your Space should now be running! Try the example prompts or ask your own questions.
43
 
44
  ## Configuration
45
+ - **Model**: openai/gpt-4o-mini
46
  - **API Key Variable**: API_KEY
47
  - **HF Token Variable**: HF_TOKEN (for auto-updates)
48
  - **Access Control**: Enabled (ACCESS_CODE)
app.py CHANGED
@@ -22,7 +22,7 @@ DEFAULT_CONFIG = {
22
  'system_prompt': "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
23
  'temperature': 0.5,
24
  'max_tokens': 1000,
25
- 'model': 'openai/gpt-oss-120b',
26
  'api_key_var': 'API_KEY',
27
  'theme': 'Default',
28
  'grounding_urls': ["https://zmuhls.github.io/ccny-data-science/syllabus/", "https://zmuhls.github.io/ccny-data-science/schedule/"],
@@ -423,7 +423,7 @@ Get your API key at: https://openrouter.ai/keys"""
423
  system_content += f"\n\nIMPORTANT: You must respond EXCLUSIVELY in {LANGUAGE}. All your responses should be written entirely in {LANGUAGE}, even when user input is in a different language, particularly English."
424
 
425
  if grounding_context:
426
- system_content += "\n\nIMPORTANT: When providing information from the reference sources below, please cite the specific URL(s) where the information can be found."
427
  system_content = f"{system_content}\n\n{grounding_context}"
428
  if file_context:
429
  system_content = f"{system_content}\n\n{file_context}"
@@ -762,6 +762,7 @@ def create_interface():
762
  "anthropic/claude-3.5-sonnet",
763
  "anthropic/claude-3.5-haiku",
764
  # OpenAI models
 
765
  "openai/gpt-4o-mini-search-preview",
766
  "openai/gpt-oss-120b",
767
  # MistralAI models
 
22
  'system_prompt': "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
23
  'temperature': 0.5,
24
  'max_tokens': 1000,
25
+ 'model': 'openai/gpt-4o-mini',
26
  'api_key_var': 'API_KEY',
27
  'theme': 'Default',
28
  'grounding_urls': ["https://zmuhls.github.io/ccny-data-science/syllabus/", "https://zmuhls.github.io/ccny-data-science/schedule/"],
 
423
  system_content += f"\n\nIMPORTANT: You must respond EXCLUSIVELY in {LANGUAGE}. All your responses should be written entirely in {LANGUAGE}, even when user input is in a different language, particularly English."
424
 
425
  if grounding_context:
426
+ system_content += "\n\nIMPORTANT: When providing information from the reference sources below, please cite the specific URL(s) where the information can be found. Format citations as plain URLs without brackets, or use markdown link format like [text](url). Never use hard brackets like 【url】 as they break the links."
427
  system_content = f"{system_content}\n\n{grounding_context}"
428
  if file_context:
429
  system_content = f"{system_content}\n\n{file_context}"
 
762
  "anthropic/claude-3.5-sonnet",
763
  "anthropic/claude-3.5-haiku",
764
  # OpenAI models
765
+ "openai/gpt-4o-mini",
766
  "openai/gpt-4o-mini-search-preview",
767
  "openai/gpt-oss-120b",
768
  # MistralAI models
config.json CHANGED
@@ -3,7 +3,7 @@
3
  "tagline": "Python support for cultural analytics students",
4
  "description": "Python support for cultural analytics students",
5
  "system_prompt": "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
6
- "model": "openai/gpt-oss-120b",
7
  "language": "English",
8
  "api_key_var": "API_KEY",
9
  "temperature": 0.5,
 
3
  "tagline": "Python support for cultural analytics students",
4
  "description": "Python support for cultural analytics students",
5
  "system_prompt": "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
6
+ "model": "openai/gpt-4o-mini",
7
  "language": "English",
8
  "api_key_var": "API_KEY",
9
  "temperature": 0.5,