move v1 to DEEPSEEK_API_URL
This commit is contained in:
parent
d18c37354f
commit
60f6b4b962
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
|
|||
use serde_json::Value;
|
||||
use std::convert::TryFrom;
|
||||
|
||||
pub const DEEPSEEK_API_URL: &str = "https://api.deepseek.com";
|
||||
pub const DEEPSEEK_API_URL: &str = "https://api.deepseek.com/v1";
|
||||
|
||||
#[derive(Clone, Copy, Serialize, Deserialize, Debug, Eq, PartialEq)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
|
@ -263,7 +263,7 @@ pub async fn stream_completion(
|
|||
api_key: &str,
|
||||
request: Request,
|
||||
) -> Result<BoxStream<'static, Result<StreamResponse>>> {
|
||||
let uri = format!("{api_url}/v1/chat/completions");
|
||||
let uri = format!("{api_url}/chat/completions");
|
||||
let request_builder = HttpRequest::builder()
|
||||
.method(Method::POST)
|
||||
.uri(uri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue