revert supervisord

This commit is contained in:
Adil Hafeez 2025-06-04 16:49:46 -07:00
parent 6a6afb0888
commit 29503ba95e
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
3 changed files with 1 additions and 53 deletions

View file

@ -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 %}

View file

@ -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)
}
}

View file

@ -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)
}
}