mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
revert supervisord
This commit is contained in:
parent
6a6afb0888
commit
29503ba95e
3 changed files with 1 additions and 53 deletions
|
|
@ -656,7 +656,7 @@ static_resources:
|
|||
- endpoint:
|
||||
address:
|
||||
socket_address:
|
||||
address: host.docker.internal
|
||||
address: 0.0.0.0
|
||||
port_value: $MODEL_SERVER_PORT
|
||||
hostname: {{ internal_cluster }}
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -1,27 +1 @@
|
|||
pub mod types;
|
||||
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::providers::deepseek::types::{DeepSeekRequest, DeepSeekResponse};
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum DeepSeekError {
|
||||
#[error("json error: {0}")]
|
||||
JsonParseError(#[from] serde_json::Error),
|
||||
}
|
||||
|
||||
type Result<T> = std::result::Result<T, DeepSeekError>;
|
||||
|
||||
impl TryFrom<&[u8]> for DeepSeekRequest {
|
||||
type Error = DeepSeekError;
|
||||
fn try_from(bytes: &[u8]) -> Result<Self> {
|
||||
serde_json::from_slice(bytes).map_err(DeepSeekError::from)
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<&[u8]> for DeepSeekResponse {
|
||||
type Error = DeepSeekError;
|
||||
fn try_from(bytes: &[u8]) -> Result<Self> {
|
||||
serde_json::from_slice(bytes).map_err(DeepSeekError::from)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,27 +1 @@
|
|||
pub mod types;
|
||||
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::providers::groq::types::{GroqRequest, GroqResponse};
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum GroqError {
|
||||
#[error("json error: {0}")]
|
||||
JsonParseError(#[from] serde_json::Error),
|
||||
}
|
||||
|
||||
type Result<T> = std::result::Result<T, GroqError>;
|
||||
|
||||
impl TryFrom<&[u8]> for GroqRequest {
|
||||
type Error = GroqError;
|
||||
fn try_from(bytes: &[u8]) -> Result<Self> {
|
||||
serde_json::from_slice(bytes).map_err(GroqError::from)
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<&[u8]> for GroqResponse {
|
||||
type Error = GroqError;
|
||||
fn try_from(bytes: &[u8]) -> Result<Self> {
|
||||
serde_json::from_slice(bytes).map_err(GroqError::from)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue