mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
Hardcoded model in endpoint URL, now fixed.
This commit is contained in:
@@ -192,7 +192,7 @@ def stream_gpt_completion(data, req_type):
|
||||
|
||||
# Send the request to the Azure endpoint
|
||||
response = requests.post(
|
||||
azure_endpoint + '/openai/deployments/GPT-4/chat/completions?api-version=2023-05-15',
|
||||
azure_endpoint + '/openai/deployments/' + model + '/chat/completions?api-version=2023-05-15',
|
||||
headers=headers,
|
||||
json=data,
|
||||
stream=True
|
||||
|
||||
Reference in New Issue
Block a user