|
OPENAI_TEMPERATURE = os.getenv("OPENAI_TEMPERATURE", 0.3) |
|
OPENAI_MODEL_SEED = os.getenv("OPENAI_MODEL_SEED", 11111111) |
os.getenv() always returns strings(), even when the default is numeric. When values come from .env they remain as strings and are passed directly into OpenAIChatModelSettings.
In my local run,I ran into the following errors:
Using Ollama,
json: cannot unmarshal string into Go struct field ChatCompletionRequest.seed of type int
Using GPT,
Invalid type for 'temperature': expected a decimal, but got a string instead.