Skip to content

Commit

Permalink
build: v1.0.6 release (^.^)YYa!!
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Jun 7, 2024
1 parent 7939053 commit 74a8dc3
Show file tree
Hide file tree
Showing 6 changed files with 2,925 additions and 2,824 deletions.
11 changes: 11 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# AiEditor ChangeLog

## v1.0.6 20240607:
- 新增:AI 大模型新增对 Openai 和 暗月之面 的支持
- 新增:编辑元素新增对 Figure 和 Figcaption 元素的支持
- 新增:AI Prompt 提示词自定义添加对 {content} 占位符的支持
- 优化:修改星火大模型默认版本为 v3.5
- 优化:重构自定义大模型 CustomAiModelConfig 的方法名称和参数
- 优化:重命名 AI 模块里的某些方法和参数,使之更加通俗易懂
- 优化:优化代码里的一些单词平行错误
- 优化:优化 AIEditor 内部的一些样式名称,防止产生可能的冲突



## v1.0.4 20240528:
- 新增:textSelectionBubbleMenu 添加开关配置的支持
Expand Down
194 changes: 97 additions & 97 deletions dist/index.cjs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare class AbstractMenuButton extends HTMLElement implements AiEditorEvent {
}

declare interface AiClient {
start: (message: string) => void;
start: (payload: string) => void;
stop: () => void;
}

Expand Down Expand Up @@ -192,9 +192,9 @@ declare abstract class AiModel {
abstract createAiClient(url: string, listener: AiMessageListener): AiClient;
/**
* 封装消息,把 prompt 转换为协议需要的格式
* @param promptMessage
* @param prompt
*/
abstract wrapMessage(promptMessage: string): any;
abstract wrapPayload(prompt: string): any;
}

declare interface AiModelConfig {
Expand Down Expand Up @@ -253,7 +253,7 @@ export declare interface NameAndValue {
export declare class SparkAiModel extends AiModel {
constructor(editor: Editor, globalConfig: AiGlobalConfig);
createAiClient(url: string, listener: AiMessageListener): AiClient;
wrapMessage(promptMessage: string): string;
wrapPayload(promptMessage: string): string;
private getDomain;
createAiClientUrl(): string;
}
Expand Down
Loading

0 comments on commit 74a8dc3

Please sign in to comment.