feat: make tests for rmcp based developer server consistent with former implementation (#4519)
Co-authored-by: Angela Ning <aning@squareup.com>
This commit is contained in:
@@ -9,7 +9,7 @@ pub use openai_compatible_editor::OpenAICompatibleEditor;
|
|||||||
pub use relace_editor::RelaceEditor;
|
pub use relace_editor::RelaceEditor;
|
||||||
|
|
||||||
/// Enum for different editor models that can perform intelligent code editing
|
/// Enum for different editor models that can perform intelligent code editing
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum EditorModel {
|
pub enum EditorModel {
|
||||||
MorphLLM(MorphLLMEditor),
|
MorphLLM(MorphLLMEditor),
|
||||||
OpenAICompatible(OpenAICompatibleEditor),
|
OpenAICompatible(OpenAICompatibleEditor),
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use reqwest::Client;
|
|||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
|
|
||||||
/// MorphLLM editor that uses the standard chat completions format
|
/// MorphLLM editor that uses the standard chat completions format
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct MorphLLMEditor {
|
pub struct MorphLLMEditor {
|
||||||
api_key: String,
|
api_key: String,
|
||||||
host: String,
|
host: String,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use reqwest::Client;
|
|||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
|
|
||||||
/// OpenAI-compatible editor that uses the standard chat completions format
|
/// OpenAI-compatible editor that uses the standard chat completions format
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct OpenAICompatibleEditor {
|
pub struct OpenAICompatibleEditor {
|
||||||
api_key: String,
|
api_key: String,
|
||||||
host: String,
|
host: String,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use reqwest::Client;
|
|||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
|
|
||||||
/// Relace-specific editor that uses the predicted outputs convention
|
/// Relace-specific editor that uses the predicted outputs convention
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct RelaceEditor {
|
pub struct RelaceEditor {
|
||||||
api_key: String,
|
api_key: String,
|
||||||
host: String,
|
host: String,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user