Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

jupytext
text_representation
extension format_name format_version jupytext_version
.md
myst
0.13
1.19.3
kernelspec
display_name language name
Python 3
python
python3

%%there ai examples

Before run

Examples in this section use connection settings from the there.env file.

there.env should be filled with values from the PythonHere app Settings section.

%%there ai also needs model settings. Put them in there_ai.env next to the notebook:

# Model name for the OpenAI-compatible chat/completions API
THERE_AI_MODEL=

# API key for hosted providers; leave empty for local providers
THERE_AI_API_KEY=

# OpenAI-compatible API base URL
THERE_AI_BASE_URL=https://api.openai.com/v1

# Sampling temperature for generated code
THERE_AI_TEMPERATURE=0.2

# Request timeout in seconds
THERE_AI_TIMEOUT=300