Get the API URL for embeddings
(&self)
| 426 | |
| 427 | /// Get the API URL for embeddings |
| 428 | fn embeddings_url(&self) -> String { |
| 429 | let endpoint = self.endpoint.trim_end_matches('/'); |
| 430 | format!( |
| 431 | "{}/openai/deployments/{}/embeddings?api-version={}", |
| 432 | endpoint, self.deployment_name, self.api_version |
| 433 | ) |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | #[async_trait] |