Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions balrog/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def api_call():
return self.client.chat.completions.create(
messages=converted_messages,
model=self.model_id,
temperature=self.client_kwargs.get("temperature", 0.5),
max_tokens=self.client_kwargs.get("max_tokens", 1024),
)

Expand Down
2 changes: 1 addition & 1 deletion balrog/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ client:
base_url: http://localhost:8080/v1 # Base URL for the API (if using a local server)
generate_kwargs:
temperature: 0.0 # Sampling temperature; 0.0 makes the output deterministic
max_tokens: 1024 # Max tokens to generate in the response
max_tokens: 4096 # Max tokens to generate in the response
timeout: 60 # Timeout for API requests in seconds
max_retries: 5 # Max number of retries for failed API calls
delay: 2 # Exponential backoff factor between retries in seconds
Expand Down
Loading