You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I figured, the current approach is to use the deployment_id that the user sat when instantiating the AzureConfig, and it gets handled by the url() method provided by the Config trait.
implConfigforAzureConfig{fnheaders(&self) -> HeaderMap{letmut headers = HeaderMap::new();
headers.insert("api-key",self.api_key.expose_secret().parse().unwrap());
headers
}fnurl(&self,path:&str) -> String{format!("{}/openai/deployments/{}{}",self.api_base,self.deployment_id, path
)// It pieces things together here... }fnapi_base(&self) -> &str{&self.api_base}fnapi_key(&self) -> &SecretString{&self.api_key}fnquery(&self) -> Vec<(&str,&str)>{vec![("api-version",&self.api_version)]}}
However, after I tried, the model parameter does not seem to work in the request creation part, nor the example had mentioned about deployment_id. This is handled in the Python library, of course.
The so-called deployment_id is confusing, as the official documents phrases it as deployment_name, as of this post.
Could you please make the model work just like the normal OpenAI approach?
The text was updated successfully, but these errors were encountered:
The model is always attached to a deployment_id / name. So the model parameter itself would never have an effect. Could you clarify what you mean by the python library handling it?
If I setup a endpoint with gpt-4o and I send the model gpt-3.5 I will still get gpt-4o per design.
As I figured, the current approach is to use the
deployment_id
that the user sat when instantiating theAzureConfig
, and it gets handled by theurl()
method provided by theConfig
trait.However, after I tried, the
model
parameter does not seem to work in the request creation part, nor the example had mentioned aboutdeployment_id
. This is handled in the Python library, of course.The so-called
deployment_id
is confusing, as the official documents phrases it asdeployment_name
, as of this post.Could you please make the
model
work just like the normal OpenAI approach?The text was updated successfully, but these errors were encountered: